From 764fc74a4f62fe33a82281a918d02f3bb2fe450e Mon Sep 17 00:00:00 2001 From: liuyunfeng Date: Wed, 28 Feb 2024 10:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=86=E7=AE=B1=E8=AE=B0=E5=BD=95=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20230103025940_Init20230103.Designer.cs | 4648 ---- .../Migrations/20230103025940_Init20230103.cs | 1967 -- ...SafetyStockModifyIndexToUnique.Designer.cs | 4650 ---- ...1911_ItemSafetyStockModifyIndexToUnique.cs | 32 - .../20230103035714_Modify20230103.Designer.cs | 4627 ---- .../20230103035714_Modify20230103.cs | 105 - .../20230104024643_RemoveCompany.Designer.cs | 4242 ---- .../20230104024643_RemoveCompany.cs | 1675 -- ...tUomQtyPackingInfoAndTimeRange.Designer.cs | 4078 --- ...15022_FlatUomQtyPackingInfoAndTimeRange.cs | 909 - ...30109071524_FlatLocationSwitch.Designer.cs | 4106 --- .../20230109071524_FlatLocationSwitch.cs | 1070 - .../20230110062547_FlatLocation.Designer.cs | 4106 --- .../Migrations/20230110062547_FlatLocation.cs | 62 - .../20230111010832_RemoveUseless.Designer.cs | 3526 --- .../20230111010832_RemoveUseless.cs | 468 - .../20230215005944_EnumToString.Designer.cs | 3545 --- .../Migrations/20230215005944_EnumToString.cs | 883 - ...215071620_BasedataEnumToString.Designer.cs | 3543 --- .../20230215071620_BasedataEnumToString.cs | 39 - .../Migrations/20240222061733_myInit.cs | 1424 -- ...ner.cs => 20240223065132_base.Designer.cs} | 36 +- .../Migrations/20240223065132_base.cs | 1603 ++ .../BasedataDbContextModelSnapshot.cs | 32 +- .../SplitPackingRecAppService.cs | 2 +- .../Commons/CommonHelper.cs | 23 + .../Commons/ExtMethod.cs | 368 + .../Win_in.Sfs.Wms.Store.Domain.Shared.csproj | 1 + .../SplitPackings/SplitPackingRec.cs | 6 +- .../SplitPackings/SplitPackingRecManager.cs | 73 +- .../20221024063735_ExchangeData.Designer.cs | 17471 ------------- .../Migrations/20221024063735_ExchangeData.cs | 5641 ----- .../20230104034259_RemoveCompany.Designer.cs | 19700 --------------- .../20230104034259_RemoveCompany.cs | 14501 ----------- ...11_RemoveWarehouseCodeInDetail.Designer.cs | 19525 -------------- ...30105062711_RemoveWarehouseCodeInDetail.cs | 406 - ...6060036_SplitUomQtyAndPackInfo.Designer.cs | 17310 ------------- .../20230106060036_SplitUomQtyAndPackInfo.cs | 4618 ---- ...09015238_FlatTimeRangeAndPhoto.Designer.cs | 17238 ------------- .../20230109015238_FlatTimeRangeAndPhoto.cs | 167 - ...09070330_FlatPersonCountResult.Designer.cs | 17032 ------------- .../20230109070330_FlatPersonCountResult.cs | 588 - .../20230110065135_FlatLocation.Designer.cs | 15676 ------------ .../Migrations/20230110065135_FlatLocation.cs | 4095 --- ...meLocationAreaAndLocationGroup.Designer.cs | 16773 ------------ ...0139_ResumeLocationAreaAndLocationGroup.cs | 2196 -- ...20230111071618_RemoveWorkGroup.Designer.cs | 16410 ------------ .../20230111071618_RemoveWorkGroup.cs | 734 - ...0230112071932_FlatItemAndBatch.Designer.cs | 14974 ----------- .../20230112071932_FlatItemAndBatch.cs | 11937 --------- ...230208083909_MergeJobIntoStore.Designer.cs | 19395 -------------- .../20230208083909_MergeJobIntoStore.cs | 1613 -- ...230215014905_StoreEnumToString.Designer.cs | 19749 --------------- .../20230215014905_StoreEnumToString.cs | 3221 --- ...0215072221_StoreDbEnumToString.Designer.cs | 19739 --------------- .../20230215072221_StoreDbEnumToString.cs | 125 - ...1163806_Added_AddPurchaseOrder.Designer.cs | 20949 --------------- .../20230401163806_Added_AddPurchaseOrder.cs | 6905 ----- ...dd_SupplierAdress_SupplierName.Designer.cs | 20973 ---------------- ...d_Store_Add_SupplierAdress_SupplierName.cs | 95 - .../20230412072454_Store_AddColumn.cs | 68 - .../20240222014023_Mig_Store_Init.cs | 644 - ...ner.cs => 20240223055707_temp.Designer.cs} | 151 +- .../Migrations/20240223055707_temp.cs | 8075 ++++++ ...ner.cs => 20240223065640_base.Designer.cs} | 909 +- .../Migrations/20240223065640_base.cs | 19 + .../Migrations/StoreDbContextModelSnapshot.cs | 147 + 67 files changed, 11340 insertions(+), 380278 deletions(-) delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103025940_Init20230103.Designer.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103025940_Init20230103.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103031911_ItemSafetyStockModifyIndexToUnique.Designer.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103031911_ItemSafetyStockModifyIndexToUnique.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103035714_Modify20230103.Designer.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103035714_Modify20230103.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230104024643_RemoveCompany.Designer.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230104024643_RemoveCompany.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109015022_FlatUomQtyPackingInfoAndTimeRange.Designer.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109015022_FlatUomQtyPackingInfoAndTimeRange.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109071524_FlatLocationSwitch.Designer.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109071524_FlatLocationSwitch.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230110062547_FlatLocation.Designer.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230110062547_FlatLocation.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230111010832_RemoveUseless.Designer.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230111010832_RemoveUseless.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215005944_EnumToString.Designer.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215005944_EnumToString.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215071620_BasedataEnumToString.Designer.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215071620_BasedataEnumToString.cs delete mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240222061733_myInit.cs rename be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/{20240222061733_myInit.Designer.cs => 20240223065132_base.Designer.cs} (99%) create mode 100644 be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240223065132_base.cs create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Commons/CommonHelper.cs create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Commons/ExtMethod.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20221024063735_ExchangeData.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20221024063735_ExchangeData.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230104034259_RemoveCompany.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230104034259_RemoveCompany.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230105062711_RemoveWarehouseCodeInDetail.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230105062711_RemoveWarehouseCodeInDetail.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230106060036_SplitUomQtyAndPackInfo.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230106060036_SplitUomQtyAndPackInfo.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109015238_FlatTimeRangeAndPhoto.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109015238_FlatTimeRangeAndPhoto.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109070330_FlatPersonCountResult.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109070330_FlatPersonCountResult.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230110065135_FlatLocation.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230110065135_FlatLocation.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111060139_ResumeLocationAreaAndLocationGroup.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111060139_ResumeLocationAreaAndLocationGroup.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111071618_RemoveWorkGroup.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111071618_RemoveWorkGroup.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230112071932_FlatItemAndBatch.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230112071932_FlatItemAndBatch.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230208083909_MergeJobIntoStore.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230208083909_MergeJobIntoStore.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215014905_StoreEnumToString.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215014905_StoreEnumToString.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215072221_StoreDbEnumToString.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215072221_StoreDbEnumToString.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230401163806_Added_AddPurchaseOrder.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230401163806_Added_AddPurchaseOrder.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230404020712_Added_Store_Add_SupplierAdress_SupplierName.Designer.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230404020712_Added_Store_Add_SupplierAdress_SupplierName.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230412072454_Store_AddColumn.cs delete mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240222014023_Mig_Store_Init.cs rename be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/{20240222014023_Mig_Store_Init.Designer.cs => 20240223055707_temp.Designer.cs} (99%) create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223055707_temp.cs rename be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/{20230412072454_Store_AddColumn.Designer.cs => 20240223065640_base.Designer.cs} (96%) create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223065640_base.cs diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103025940_Init20230103.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103025940_Init20230103.Designer.cs deleted file mode 100644 index c3a1fecd5..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103025940_Init20230103.Designer.cs +++ /dev/null @@ -1,4648 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Basedata.EntityFrameworkCore; - -namespace Win_in.Sfs.Basedata.Migrations -{ - [DbContext(typeof(BasedataDbContext))] - [Migration("20230103025940_Init20230103")] - partial class Init20230103 - { - protected override void BuildTargetModel(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") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CeilingQty") - .HasColumnType("decimal(18,6)"); - - 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,6)"); - - 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,6)"); - - b.Property("SampleQty") - .HasColumnType("decimal(18,6)"); - - 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") - .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") - .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") - .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") - .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") - .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") - .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") - .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") - .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") - .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,6)"); - - 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") - .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("ShortName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .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") - .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,6)"); - - 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") - .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.Dict", b => - { - b.Property("Id") - .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("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_Dict"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterId") - .HasColumnType("uniqueidentifier"); - - 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("Value") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterId"); - - b.ToTable("Basedata_DictItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b => - { - b.Property("Id") - .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.DocumentSetting", 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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberFormat") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberPrefix") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSeparator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSerialLength") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransactionType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Code") - .IsUnique(); - - b.ToTable("Basedata_DocumentSetting"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b => - { - b.Property("Id") - .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") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Company") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConvertToTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Month") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique() - .HasFilter("[Company] IS NOT NULL"); - - b.ToTable("Basedata_InterfaceCalendar"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InventoryRoute", b => - { - b.Property("Id") - .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("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_InventoryRoute"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemBasic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BasicUom") - .HasColumnType("nvarchar(max)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("CanOutsourcing") - .HasColumnType("bit"); - - b.Property("Category") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Color") - .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("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Eco") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Elevel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("IsRecycled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManageType") - .HasColumnType("int"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Validity") - .HasColumnType("int"); - - b.Property("ValidityUnit") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_ItemBasic"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryCode") - .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("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("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "CategoryCode", "ItemCode", "Value") - .IsUnique(); - - b.ToTable("Basedata_ItemCategory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.Property("Id") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PictureBlobName") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Step") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "Company") - .IsUnique(); - - b.ToTable("Basedata_ItemGuideBook"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.Property("Id") - .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("ConversionRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStdPack") - .HasMaxLength(64) - .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("PackCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Company", "ItemCode", "PackCode") - .IsUnique(); - - b.ToTable("Basedata_ItemPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemQuality", b => - { - b.Property("Id") - .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(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectType") - .HasColumnType("int"); - - 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("Status") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "SupplierCode") - .IsUnique(); - - b.ToTable("Basedata_ItemQuality"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemSafetyStock", b => - { - b.Property("Id") - .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("FeedLine") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("MaxStock") - .HasColumnType("decimal(18,6)"); - - b.Property("MinStock") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SafetyStock") - .HasColumnType("decimal(18,6)"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "Company", "StoreRelationType", "StoreValue"); - - b.ToTable("Basedata_ItemSafetyStock"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemStoreRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltUm") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AltUmQty") - .HasColumnType("decimal(18,6)"); - - 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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsFixed") - .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("MultiLoc") - .HasColumnType("int"); - - b.Property("PramaryUM") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UmQty") - .HasColumnType("decimal(18,6)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "Company", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemStoreRelation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ColumnCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - 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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ErpLocationCode") - .IsRequired() - .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("LocationGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickOrder") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("ShelfCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .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("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OverflowLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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_LocationGroup"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLineAggregateRootId") - .HasColumnType("uniqueidentifier"); - - b.Property("ProdLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStationId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineAggregateRootId"); - - b.HasIndex("WorkStationId"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Machine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Param", b => - { - b.Property("Id") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasColumnType("nvarchar(max)"); - - 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("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Param"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProdLineItem", b => - { - b.Property("Id") - .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("ItemCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProdLineCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineCode", "ItemCode", "Company") - .IsUnique(); - - b.ToTable("Basedata_ProdLineItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLine", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroupCode") - .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") - .HasColumnType("int"); - - b.Property("WorkshopCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_ProductionLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.Property("Id") - .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("CustomerCode") - .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.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Project"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.PurchasePriceSheet", b => - { - b.Property("Id") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_PurchasePriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Route", b => - { - b.Property("Id") - .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("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_Route"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Rule", b => - { - b.Property("Id") - .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") - .IsRequired() - .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("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.Property("Value") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Rule"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SalePriceSheet", b => - { - b.Property("Id") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("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", "CustomerId") - .IsUnique(); - - b.ToTable("Basedata_SalePriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.Property("Id") - .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("EndAtNextDay") - .HasColumnType("bit"); - - 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_Shift"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StdCostPriceSheet", b => - { - b.Property("Id") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company", "SupplierId") - .IsUnique(); - - b.ToTable("Basedata_StdCostPriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Strategy", b => - { - b.Property("Id") - .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(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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Strategy"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StrategyRule", b => - { - b.Property("Id") - .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("EffectiveTime") - .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("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StrategyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("StrategyId", "RuleId", "Company") - .IsUnique(); - - b.ToTable("Basedata_StrategyRule"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Supplier", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Bank") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - 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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Supplier"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.Property("Id") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("QtyPerPallet") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierSimpleName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode", "Company") - .IsUnique(); - - b.ToTable("Basedata_SupplierItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierTime", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeSlot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Week") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "Company", "TimeSlot", "Week") - .IsUnique(); - - b.ToTable("Basedata_SupplierTime"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Team", b => - { - b.Property("Id") - .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(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("Members") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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_Team"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.TransactionType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoAgreeRequest") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandleRequest") - .HasColumnType("bit"); - - b.Property("AutoSubmitRequest") - .HasColumnType("bit"); - - 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") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("InLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemTypes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OutInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OutLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("OutLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransSubType") - .HasColumnType("int"); - - b.Property("TransType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TransType", "TransSubType", "Company") - .IsUnique(); - - b.ToTable("Basedata_TransactionType"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Uom", b => - { - b.Property("Id") - .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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Uom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Warehouse", b => - { - b.Property("Id") - .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("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_Warehouse"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkGroup", b => - { - b.Property("Id") - .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("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_WorkGroup"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkShop", b => - { - b.Property("Id") - .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("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_WorkShop"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkStation", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionLineCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .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_WorkStation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("BomId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("BomId"); - - b1.ToTable("Basedata_Bom"); - - b1.WithOwner() - .HasForeignKey("BomId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PerQty", b1 => - { - b1.Property("BomId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BomId"); - - b1.ToTable("Basedata_Bom"); - - b1.WithOwner() - .HasForeignKey("BomId"); - }); - - b.Navigation("PerQty"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CalendarId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CalendarId"); - - b1.ToTable("Basedata_Calendar"); - - b1.WithOwner() - .HasForeignKey("CalendarId"); - }); - - b.Navigation("TimeRange") - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CustomerItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CustomerItemId"); - - b1.ToTable("Basedata_CustomerItem"); - - b1.WithOwner() - .HasForeignKey("CustomerItemId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "CustomerPackQty", b1 => - { - b1.Property("CustomerItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerItemId"); - - b1.ToTable("Basedata_CustomerItem"); - - b1.WithOwner() - .HasForeignKey("CustomerItemId"); - }); - - b.Navigation("CustomerPackQty"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.Dict", null) - .WithMany("Items") - .HasForeignKey("MasterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemGuideBookId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemGuideBookId"); - - b1.ToTable("Basedata_ItemGuideBook"); - - b1.WithOwner() - .HasForeignKey("ItemGuideBookId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PackQty", b1 => - { - b1.Property("ItemPackId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemPackId"); - - b1.ToTable("Basedata_ItemPack"); - - b1.WithOwner() - .HasForeignKey("ItemPackId"); - }); - - b.Navigation("PackQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.LocationSwitch", "LocSwitch", b1 => - { - b1.Property("LocationId") - .HasColumnType("uniqueidentifier"); - - b1.Property("EnableBreakStore") - .HasColumnType("bit"); - - b1.Property("EnableKeepZero") - .HasColumnType("bit"); - - b1.Property("EnableMixItem") - .HasColumnType("bit"); - - b1.Property("EnableMixLot") - .HasColumnType("bit"); - - b1.Property("EnableMixStatus") - .HasColumnType("bit"); - - b1.Property("EnableNegative") - .HasColumnType("bit"); - - b1.Property("EnableOpportunityCount") - .HasColumnType("bit"); - - b1.Property("EnableOverPick") - .HasColumnType("bit"); - - b1.Property("EnablePick") - .HasColumnType("bit"); - - b1.Property("EnableReceive") - .HasColumnType("bit"); - - b1.Property("EnableReturnFromCustomer") - .HasColumnType("bit"); - - b1.Property("EnableReturnToSupplier") - .HasColumnType("bit"); - - b1.Property("EnableShip") - .HasColumnType("bit"); - - b1.Property("EnableSplitBox") - .HasColumnType("bit"); - - b1.Property("EnableSplitPallet") - .HasColumnType("bit"); - - b1.Property("EnableWholeStore") - .HasColumnType("bit"); - - b1.HasKey("LocationId"); - - b1.ToTable("Basedata_Location"); - - b1.WithOwner() - .HasForeignKey("LocationId"); - }); - - b.Navigation("LocSwitch"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.LocationSwitch", "LocSwitch", b1 => - { - b1.Property("LocationGroupId") - .HasColumnType("uniqueidentifier"); - - b1.Property("EnableBreakStore") - .HasColumnType("bit"); - - b1.Property("EnableKeepZero") - .HasColumnType("bit"); - - b1.Property("EnableMixItem") - .HasColumnType("bit"); - - b1.Property("EnableMixLot") - .HasColumnType("bit"); - - b1.Property("EnableMixStatus") - .HasColumnType("bit"); - - b1.Property("EnableNegative") - .HasColumnType("bit"); - - b1.Property("EnableOpportunityCount") - .HasColumnType("bit"); - - b1.Property("EnableOverPick") - .HasColumnType("bit"); - - b1.Property("EnablePick") - .HasColumnType("bit"); - - b1.Property("EnableReceive") - .HasColumnType("bit"); - - b1.Property("EnableReturnFromCustomer") - .HasColumnType("bit"); - - b1.Property("EnableReturnToSupplier") - .HasColumnType("bit"); - - b1.Property("EnableShip") - .HasColumnType("bit"); - - b1.Property("EnableSplitBox") - .HasColumnType("bit"); - - b1.Property("EnableSplitPallet") - .HasColumnType("bit"); - - b1.Property("EnableWholeStore") - .HasColumnType("bit"); - - b1.HasKey("LocationGroupId"); - - b1.ToTable("Basedata_LocationGroup"); - - b1.WithOwner() - .HasForeignKey("LocationGroupId"); - }); - - b.Navigation("LocSwitch"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.ProductionLine", "ProdLineAggregateRoot") - .WithMany() - .HasForeignKey("ProdLineAggregateRootId"); - - b.HasOne("Win_in.Sfs.Basedata.Domain.WorkStation", "WorkStationAggregateRoot") - .WithMany() - .HasForeignKey("WorkStationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ProdLineAggregateRoot"); - - b.Navigation("WorkStationAggregateRoot"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("ProjectId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("ProjectId"); - - b1.ToTable("Basedata_Project"); - - b1.WithOwner() - .HasForeignKey("ProjectId"); - }); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("ShiftId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("ShiftId"); - - b1.ToTable("Basedata_Shift"); - - b1.WithOwner() - .HasForeignKey("ShiftId"); - }); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "SupplierPackQty", b1 => - { - b1.Property("SupplierItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierItemId"); - - b1.ToTable("Basedata_SupplierItem"); - - b1.WithOwner() - .HasForeignKey("SupplierItemId"); - }); - - b.Navigation("SupplierPackQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Navigation("Items"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103025940_Init20230103.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103025940_Init20230103.cs deleted file mode 100644 index e9ed910b5..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103025940_Init20230103.cs +++ /dev/null @@ -1,1967 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Basedata.Migrations; - -public partial class Init20230103 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Basedata_AQL", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - AbcClass = table.Column(type: "nvarchar(max)", nullable: true), - FloorQty = table.Column(type: "decimal(18,6)", nullable: false), - CeilingQty = table.Column(type: "decimal(18,6)", nullable: false), - SamplePercent = table.Column(type: "decimal(18,6)", nullable: false), - SampleQty = table.Column(type: "decimal(18,6)", nullable: false), - IsUsePercent = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_AQL", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Area", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - AreaType = table.Column(type: "int", nullable: false), - IsFunctional = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Area", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_AreaItem", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AreaId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - ItemId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - UomId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - Allowed = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_AreaItem", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Bom", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Product = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Component = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - PerQty_Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PerQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - TimeRange_BeginTime = table.Column(type: "datetime2", nullable: true), - TimeRange_EndTime = table.Column(type: "datetime2", nullable: true), - ERPOp = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Layer = table.Column(type: "int", maxLength: 64, nullable: false, defaultValue: 1), - MFGOp = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DistributionType = table.Column(type: "int", nullable: false), - TruncType = table.Column(type: "int", nullable: false), - PlannedSplitRule = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Bom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Calendar", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Module = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - TimeRange_BeginTime = table.Column(type: "datetime2", nullable: false), - TimeRange_EndTime = table.Column(type: "datetime2", nullable: false), - Status = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Calendar", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Category", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Category", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Company", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FullName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Logo = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PrimaryProduct = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Company", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Configuration", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Key = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Value = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Configuration", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Currency", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - IsBasicCurrency = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Currency", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_CurrencyExchange", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CurrencyId = table.Column(type: "uniqueidentifier", nullable: false), - BasicCurrencyId = table.Column(type: "uniqueidentifier", nullable: false), - Rate = table.Column(type: "decimal(18,6)", nullable: false), - EfficetiveTime = table.Column(type: "datetime2", nullable: false), - ExpireTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_CurrencyExchange", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Customer", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ShortName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Address = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Country = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - City = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Phone = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Fax = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PostID = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Contacts = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Currency = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsActive = table.Column(type: "bit", nullable: false), - Type = table.Column(type: "int", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Customer", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_CustomerAddress", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Address = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Contact = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - City = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Desc = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_CustomerAddress", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_CustomerBom", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - ParentItemId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - ChildItemId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - Qty = table.Column(type: "decimal(18,6)", nullable: false), - EffectiveTime = table.Column(type: "datetime2", nullable: false), - FailureTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_CustomerBom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_CustomerItem", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CustomerItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Version = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - CustomerPackQty_Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CustomerPackQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - TimeRange_BeginTime = table.Column(type: "datetime2", nullable: true), - TimeRange_EndTime = table.Column(type: "datetime2", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_CustomerItem", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Dict", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Dict", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Dock", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DefaultLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Dock", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_DocumentSetting", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - TransactionType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - NumberPrefix = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - NumberFormat = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - NumberSerialLength = table.Column(type: "int", nullable: false), - NumberSeparator = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_DocumentSetting", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ErpLocation", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ErpLocation", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_InterfaceCalendar", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Year = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Month = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - ConvertToTime = table.Column(type: "datetime2", nullable: false), - Description = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", nullable: true), - Company = table.Column(type: "nvarchar(450)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_InterfaceCalendar", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_InventoryRoute", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_InventoryRoute", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ItemBasic", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Desc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Desc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Status = table.Column(type: "int", nullable: false), - CanMake = table.Column(type: "bit", nullable: false), - CanBuy = table.Column(type: "bit", nullable: false), - CanOutsourcing = table.Column(type: "bit", nullable: false), - IsRecycled = table.Column(type: "bit", nullable: false), - Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Category = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Color = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Configuration = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BasicUom = table.Column(type: "nvarchar(max)", nullable: true), - AbcClass = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ProductLine = table.Column(type: "nvarchar(max)", nullable: true), - Project = table.Column(type: "nvarchar(max)", nullable: true), - Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Eco = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Validity = table.Column(type: "int", nullable: false), - ValidityUnit = table.Column(type: "int", nullable: false), - ManageType = table.Column(type: "int", nullable: false), - Elevel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsPhantom = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ItemBasic", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ItemCategory", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CategoryCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ItemCategory", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ItemGuideBook", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Item_Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Step = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - PictureBlobName = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ItemGuideBook", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ItemPack", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PackCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - PackName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PackType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - PackQty_Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PackQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - IsStdPack = table.Column(type: "bit", maxLength: 64, nullable: false), - StdPackCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ConversionRate = table.Column(type: "decimal(18,6)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ItemPack", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ItemQuality", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Status = table.Column(type: "int", nullable: false, defaultValue: 1), - Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - InspectType = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ItemQuality", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ItemSafetyStock", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StoreRelationType = table.Column(type: "int", nullable: false), - StoreValue = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - MaxStock = table.Column(type: "decimal(18,6)", nullable: false), - MinStock = table.Column(type: "decimal(18,6)", nullable: false), - SafetyStock = table.Column(type: "decimal(18,6)", nullable: false), - FeedLine = table.Column(type: "decimal(18,6)", nullable: false), - FeedQty = table.Column(type: "decimal(18,6)", nullable: false), - FeedUM = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ItemSafetyStock", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ItemStoreRelation", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StoreRelationType = table.Column(type: "int", nullable: false), - StoreValue = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - StoreUM = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - UmQty = table.Column(type: "decimal(18,6)", nullable: false), - AltUm = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AltUmQty = table.Column(type: "decimal(18,6)", nullable: false), - PramaryUM = table.Column(type: "int", nullable: false), - IsFixed = table.Column(type: "bit", nullable: false), - MultiLoc = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ItemStoreRelation", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Location", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Type = table.Column(type: "int", nullable: false), - ErpLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - AreaCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ShelfCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RowCode = table.Column(type: "int", nullable: false, defaultValue: 1), - ColumnCode = table.Column(type: "int", nullable: false, defaultValue: 1), - DefaultInventoryStatus = table.Column(type: "int", nullable: false), - PickPriority = table.Column(type: "int", nullable: false, defaultValue: 0), - PickOrder = table.Column(type: "int", nullable: false, defaultValue: 0), - LocSwitch_EnableMixItem = table.Column(type: "bit", nullable: true), - LocSwitch_EnableMixLot = table.Column(type: "bit", nullable: true), - LocSwitch_EnableMixStatus = table.Column(type: "bit", nullable: true), - LocSwitch_EnableNegative = table.Column(type: "bit", nullable: true), - LocSwitch_EnableKeepZero = table.Column(type: "bit", nullable: true), - LocSwitch_EnableOpportunityCount = table.Column(type: "bit", nullable: true), - LocSwitch_EnablePick = table.Column(type: "bit", nullable: true), - LocSwitch_EnableOverPick = table.Column(type: "bit", nullable: true), - LocSwitch_EnableWholeStore = table.Column(type: "bit", nullable: true), - LocSwitch_EnableBreakStore = table.Column(type: "bit", nullable: true), - LocSwitch_EnableShip = table.Column(type: "bit", nullable: true), - LocSwitch_EnableReceive = table.Column(type: "bit", nullable: true), - LocSwitch_EnableReturnToSupplier = table.Column(type: "bit", nullable: true), - LocSwitch_EnableReturnFromCustomer = table.Column(type: "bit", nullable: true), - LocSwitch_EnableSplitBox = table.Column(type: "bit", nullable: true), - LocSwitch_EnableSplitPallet = table.Column(type: "bit", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Location", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_LocationGroup", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - AreaCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - GroupType = table.Column(type: "int", nullable: false), - DefaultInventoryStatus = table.Column(type: "int", nullable: false), - PickPriority = table.Column(type: "int", nullable: false, defaultValue: 0), - OverflowLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocSwitch_EnableMixItem = table.Column(type: "bit", nullable: true), - LocSwitch_EnableMixLot = table.Column(type: "bit", nullable: true), - LocSwitch_EnableMixStatus = table.Column(type: "bit", nullable: true), - LocSwitch_EnableNegative = table.Column(type: "bit", nullable: true), - LocSwitch_EnableKeepZero = table.Column(type: "bit", nullable: true), - LocSwitch_EnableOpportunityCount = table.Column(type: "bit", nullable: true), - LocSwitch_EnablePick = table.Column(type: "bit", nullable: true), - LocSwitch_EnableOverPick = table.Column(type: "bit", nullable: true), - LocSwitch_EnableWholeStore = table.Column(type: "bit", nullable: true), - LocSwitch_EnableBreakStore = table.Column(type: "bit", nullable: true), - LocSwitch_EnableShip = table.Column(type: "bit", nullable: true), - LocSwitch_EnableReceive = table.Column(type: "bit", nullable: true), - LocSwitch_EnableReturnToSupplier = table.Column(type: "bit", nullable: true), - LocSwitch_EnableReturnFromCustomer = table.Column(type: "bit", nullable: true), - LocSwitch_EnableSplitBox = table.Column(type: "bit", nullable: true), - LocSwitch_EnableSplitPallet = table.Column(type: "bit", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_LocationGroup", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Param", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Value = table.Column(type: "nvarchar(max)", nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Group = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Param", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ProdLineItem", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ProdLineCode = table.Column(type: "nvarchar(450)", nullable: false), - ItemCode = table.Column(type: "nvarchar(450)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ProdLineItem", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ProductionLine", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Type = table.Column(type: "int", nullable: false), - WorkshopCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RawLocation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductLocation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RawLocationGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ProductionLine", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Project", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - TimeRange_BeginTime = table.Column(type: "datetime2", nullable: true), - TimeRange_EndTime = table.Column(type: "datetime2", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Project", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_PurchasePriceSheet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SupplierId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - CurrencyId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_PurchasePriceSheet", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Route", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Route", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Rule", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), - Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Rule", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_SalePriceSheet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - CurrencyId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_SalePriceSheet", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Shift", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - TimeRange_BeginTime = table.Column(type: "datetime2", nullable: true), - TimeRange_EndTime = table.Column(type: "datetime2", nullable: true), - EndAtNextDay = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Shift", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_StdCostPriceSheet", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierId = table.Column(type: "uniqueidentifier", nullable: false), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - CurrencyId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_StdCostPriceSheet", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Strategy", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Type = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Strategy", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_StrategyRule", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - StrategyId = table.Column(type: "uniqueidentifier", nullable: false), - Seq = table.Column(type: "int", nullable: false), - RuleId = table.Column(type: "uniqueidentifier", nullable: false), - EffectiveTime = table.Column(type: "datetime2", nullable: false), - ExpireTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_StrategyRule", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Supplier", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ShortName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Address = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Country = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - City = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Phone = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Fax = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PostID = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Contacts = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Bank = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Currency = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - TaxRate = table.Column(type: "decimal(18,6)", nullable: false), - IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), - Type = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Supplier", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_SupplierItem", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierSimpleName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierPackQty_Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierPackQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - QtyPerPallet = table.Column(type: "decimal(18,6)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_SupplierItem", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_SupplierTime", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - TimeSlot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Week = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_SupplierTime", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Team", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Members = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Team", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_TransactionType", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TransType = table.Column(type: "int", nullable: false), - TransSubType = table.Column(type: "int", nullable: false), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), - InLocationTypes = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - OutLocationTypes = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - InLocationAreas = table.Column(type: "nvarchar(max)", nullable: true), - OutLocationAreas = table.Column(type: "nvarchar(max)", nullable: true), - ItemStatuses = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemTypes = table.Column(type: "nvarchar(max)", nullable: true), - InInventoryStatuses = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - OutInventoryStatuses = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AutoSubmitRequest = table.Column(type: "bit", nullable: false), - AutoAgreeRequest = table.Column(type: "bit", nullable: false), - AutoHandleRequest = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - Enabled = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_TransactionType", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Uom", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Type = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Uom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Warehouse", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Warehouse", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_WorkGroup", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_WorkGroup", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_WorkShop", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_WorkShop", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_WorkStation", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ProductionLineCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - RawLocation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductLocation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Type = table.Column(type: "int", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_WorkStation", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_DictItem", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - MasterId = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Value = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_DictItem", x => x.Id); - table.ForeignKey( - name: "FK_Basedata_DictItem_Basedata_Dict_MasterId", - column: x => x.MasterId, - principalTable: "Basedata_Dict", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Machine", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ProdLineId = table.Column(type: "uniqueidentifier", nullable: false), - ProdLineAggregateRootId = table.Column(type: "uniqueidentifier", nullable: true), - WorkStationId = table.Column(type: "uniqueidentifier", nullable: false), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Machine", x => x.Id); - table.ForeignKey( - name: "FK_Basedata_Machine_Basedata_ProductionLine_ProdLineAggregateRootId", - column: x => x.ProdLineAggregateRootId, - principalTable: "Basedata_ProductionLine", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - table.ForeignKey( - name: "FK_Basedata_Machine_Basedata_WorkStation_WorkStationId", - column: x => x.WorkStationId, - principalTable: "Basedata_WorkStation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_AQL_SupplierCode_ItemCode_FloorQty_Company", - table: "Basedata_AQL", - columns: new[] { "SupplierCode", "ItemCode", "FloorQty", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Area_Code_Company", - table: "Basedata_Area", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_AreaItem_Company_AreaId_ItemId", - table: "Basedata_AreaItem", - columns: new[] { "Company", "AreaId", "ItemId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Bom_Product_Company_Component", - table: "Basedata_Bom", - columns: new[] { "Product", "Company", "Component" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Calendar_Company", - table: "Basedata_Calendar", - column: "Company", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Category_Code_Company", - table: "Basedata_Category", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Company_Code_Company", - table: "Basedata_Company", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Configuration_Company", - table: "Basedata_Configuration", - column: "Company", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Currency_Code_Company", - table: "Basedata_Currency", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CurrencyExchange_Company_CurrencyId_BasicCurrencyId", - table: "Basedata_CurrencyExchange", - columns: new[] { "Company", "CurrencyId", "BasicCurrencyId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Customer_Code_Company", - table: "Basedata_Customer", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CustomerAddress_Company_Code_CustomerCode", - table: "Basedata_CustomerAddress", - columns: new[] { "Company", "Code", "CustomerCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CustomerBom_Company_CustomerId_ParentItemId_ChildItemId", - table: "Basedata_CustomerBom", - columns: new[] { "Company", "CustomerId", "ParentItemId", "ChildItemId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CustomerItem_Company_CustomerCode_ItemCode", - table: "Basedata_CustomerItem", - columns: new[] { "Company", "CustomerCode", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Dict_Code_Company", - table: "Basedata_Dict", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_DictItem_MasterId", - table: "Basedata_DictItem", - column: "MasterId"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Dock_Code_Company", - table: "Basedata_Dock", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_DocumentSetting_Company_Code", - table: "Basedata_DocumentSetting", - columns: new[] { "Company", "Code" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ErpLocation_Code_Company", - table: "Basedata_ErpLocation", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_InterfaceCalendar_Code_Company", - table: "Basedata_InterfaceCalendar", - columns: new[] { "Code", "Company" }, - unique: true, - filter: "[Company] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_InventoryRoute_Code_Company", - table: "Basedata_InventoryRoute", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemBasic_Code_Company", - table: "Basedata_ItemBasic", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemCategory_Company_CategoryCode_ItemCode_Value", - table: "Basedata_ItemCategory", - columns: new[] { "Company", "CategoryCode", "ItemCode", "Value" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemGuideBook_ItemCode_Company", - table: "Basedata_ItemGuideBook", - columns: new[] { "ItemCode", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemPack_Company_ItemCode_PackCode", - table: "Basedata_ItemPack", - columns: new[] { "Company", "ItemCode", "PackCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemQuality_ItemCode_SupplierCode", - table: "Basedata_ItemQuality", - columns: new[] { "ItemCode", "SupplierCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemSafetyStock_ItemCode_Company_StoreRelationType_StoreValue", - table: "Basedata_ItemSafetyStock", - columns: new[] { "ItemCode", "Company", "StoreRelationType", "StoreValue" }); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemStoreRelation_ItemCode_Company_StoreRelationType_StoreValue", - table: "Basedata_ItemStoreRelation", - columns: new[] { "ItemCode", "Company", "StoreRelationType", "StoreValue" }, - unique: true, - filter: "[StoreValue] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Location_Code_Company", - table: "Basedata_Location", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_LocationGroup_Code_Company", - table: "Basedata_LocationGroup", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Machine_Code_Company", - table: "Basedata_Machine", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Machine_ProdLineAggregateRootId", - table: "Basedata_Machine", - column: "ProdLineAggregateRootId"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Machine_WorkStationId", - table: "Basedata_Machine", - column: "WorkStationId"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Param_Code_Company", - table: "Basedata_Param", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ProdLineItem_ProdLineCode_ItemCode_Company", - table: "Basedata_ProdLineItem", - columns: new[] { "ProdLineCode", "ItemCode", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ProductionLine_Code_Company", - table: "Basedata_ProductionLine", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Project_Code_Company", - table: "Basedata_Project", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_PurchasePriceSheet_Code_Company", - table: "Basedata_PurchasePriceSheet", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Route_Code_Company", - table: "Basedata_Route", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Rule_Code_Company", - table: "Basedata_Rule", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SalePriceSheet_Code_Company_CustomerId", - table: "Basedata_SalePriceSheet", - columns: new[] { "Code", "Company", "CustomerId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Shift_Code_Company", - table: "Basedata_Shift", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_StdCostPriceSheet_Code_Company_SupplierId", - table: "Basedata_StdCostPriceSheet", - columns: new[] { "Code", "Company", "SupplierId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Strategy_Code_Company", - table: "Basedata_Strategy", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_StrategyRule_StrategyId_RuleId_Company", - table: "Basedata_StrategyRule", - columns: new[] { "StrategyId", "RuleId", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Supplier_Code_Company", - table: "Basedata_Supplier", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SupplierItem_SupplierCode_ItemCode_Company", - table: "Basedata_SupplierItem", - columns: new[] { "SupplierCode", "ItemCode", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SupplierTime_SupplierCode_Company_TimeSlot_Week", - table: "Basedata_SupplierTime", - columns: new[] { "SupplierCode", "Company", "TimeSlot", "Week" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Team_Code_Company", - table: "Basedata_Team", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_TransactionType_TransType_TransSubType_Company", - table: "Basedata_TransactionType", - columns: new[] { "TransType", "TransSubType", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Uom_Code_Company", - table: "Basedata_Uom", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Warehouse_Code_Company", - table: "Basedata_Warehouse", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_WorkGroup_Code_Company", - table: "Basedata_WorkGroup", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_WorkShop_Code_Company", - table: "Basedata_WorkShop", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_WorkStation_Code_Company", - table: "Basedata_WorkStation", - columns: new[] { "Code", "Company" }, - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Basedata_AQL"); - - migrationBuilder.DropTable( - name: "Basedata_Area"); - - migrationBuilder.DropTable( - name: "Basedata_AreaItem"); - - migrationBuilder.DropTable( - name: "Basedata_Bom"); - - migrationBuilder.DropTable( - name: "Basedata_Calendar"); - - migrationBuilder.DropTable( - name: "Basedata_Category"); - - migrationBuilder.DropTable( - name: "Basedata_Company"); - - migrationBuilder.DropTable( - name: "Basedata_Configuration"); - - migrationBuilder.DropTable( - name: "Basedata_Currency"); - - migrationBuilder.DropTable( - name: "Basedata_CurrencyExchange"); - - migrationBuilder.DropTable( - name: "Basedata_Customer"); - - migrationBuilder.DropTable( - name: "Basedata_CustomerAddress"); - - migrationBuilder.DropTable( - name: "Basedata_CustomerBom"); - - migrationBuilder.DropTable( - name: "Basedata_CustomerItem"); - - migrationBuilder.DropTable( - name: "Basedata_DictItem"); - - migrationBuilder.DropTable( - name: "Basedata_Dock"); - - migrationBuilder.DropTable( - name: "Basedata_DocumentSetting"); - - migrationBuilder.DropTable( - name: "Basedata_ErpLocation"); - - migrationBuilder.DropTable( - name: "Basedata_InterfaceCalendar"); - - migrationBuilder.DropTable( - name: "Basedata_InventoryRoute"); - - migrationBuilder.DropTable( - name: "Basedata_ItemBasic"); - - migrationBuilder.DropTable( - name: "Basedata_ItemCategory"); - - migrationBuilder.DropTable( - name: "Basedata_ItemGuideBook"); - - migrationBuilder.DropTable( - name: "Basedata_ItemPack"); - - migrationBuilder.DropTable( - name: "Basedata_ItemQuality"); - - migrationBuilder.DropTable( - name: "Basedata_ItemSafetyStock"); - - migrationBuilder.DropTable( - name: "Basedata_ItemStoreRelation"); - - migrationBuilder.DropTable( - name: "Basedata_Location"); - - migrationBuilder.DropTable( - name: "Basedata_LocationGroup"); - - migrationBuilder.DropTable( - name: "Basedata_Machine"); - - migrationBuilder.DropTable( - name: "Basedata_Param"); - - migrationBuilder.DropTable( - name: "Basedata_ProdLineItem"); - - migrationBuilder.DropTable( - name: "Basedata_Project"); - - migrationBuilder.DropTable( - name: "Basedata_PurchasePriceSheet"); - - migrationBuilder.DropTable( - name: "Basedata_Route"); - - migrationBuilder.DropTable( - name: "Basedata_Rule"); - - migrationBuilder.DropTable( - name: "Basedata_SalePriceSheet"); - - migrationBuilder.DropTable( - name: "Basedata_Shift"); - - migrationBuilder.DropTable( - name: "Basedata_StdCostPriceSheet"); - - migrationBuilder.DropTable( - name: "Basedata_Strategy"); - - migrationBuilder.DropTable( - name: "Basedata_StrategyRule"); - - migrationBuilder.DropTable( - name: "Basedata_Supplier"); - - migrationBuilder.DropTable( - name: "Basedata_SupplierItem"); - - migrationBuilder.DropTable( - name: "Basedata_SupplierTime"); - - migrationBuilder.DropTable( - name: "Basedata_Team"); - - migrationBuilder.DropTable( - name: "Basedata_TransactionType"); - - migrationBuilder.DropTable( - name: "Basedata_Uom"); - - migrationBuilder.DropTable( - name: "Basedata_Warehouse"); - - migrationBuilder.DropTable( - name: "Basedata_WorkGroup"); - - migrationBuilder.DropTable( - name: "Basedata_WorkShop"); - - migrationBuilder.DropTable( - name: "Basedata_Dict"); - - migrationBuilder.DropTable( - name: "Basedata_ProductionLine"); - - migrationBuilder.DropTable( - name: "Basedata_WorkStation"); - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103031911_ItemSafetyStockModifyIndexToUnique.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103031911_ItemSafetyStockModifyIndexToUnique.Designer.cs deleted file mode 100644 index cf3893593..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103031911_ItemSafetyStockModifyIndexToUnique.Designer.cs +++ /dev/null @@ -1,4650 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Basedata.EntityFrameworkCore; - -namespace Win_in.Sfs.Basedata.Migrations -{ - [DbContext(typeof(BasedataDbContext))] - [Migration("20230103031911_ItemSafetyStockModifyIndexToUnique")] - partial class ItemSafetyStockModifyIndexToUnique - { - protected override void BuildTargetModel(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") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CeilingQty") - .HasColumnType("decimal(18,6)"); - - 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,6)"); - - 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,6)"); - - b.Property("SampleQty") - .HasColumnType("decimal(18,6)"); - - 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") - .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") - .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") - .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") - .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") - .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") - .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") - .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") - .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") - .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,6)"); - - 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") - .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("ShortName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .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") - .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,6)"); - - 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") - .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.Dict", b => - { - b.Property("Id") - .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("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_Dict"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterId") - .HasColumnType("uniqueidentifier"); - - 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("Value") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterId"); - - b.ToTable("Basedata_DictItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b => - { - b.Property("Id") - .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.DocumentSetting", 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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberFormat") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberPrefix") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSeparator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSerialLength") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransactionType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Code") - .IsUnique(); - - b.ToTable("Basedata_DocumentSetting"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b => - { - b.Property("Id") - .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") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Company") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConvertToTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Month") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique() - .HasFilter("[Company] IS NOT NULL"); - - b.ToTable("Basedata_InterfaceCalendar"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InventoryRoute", b => - { - b.Property("Id") - .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("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_InventoryRoute"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemBasic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BasicUom") - .HasColumnType("nvarchar(max)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("CanOutsourcing") - .HasColumnType("bit"); - - b.Property("Category") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Color") - .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("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Eco") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Elevel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("IsRecycled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManageType") - .HasColumnType("int"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Validity") - .HasColumnType("int"); - - b.Property("ValidityUnit") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_ItemBasic"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryCode") - .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("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("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "CategoryCode", "ItemCode", "Value") - .IsUnique(); - - b.ToTable("Basedata_ItemCategory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.Property("Id") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PictureBlobName") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Step") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "Company") - .IsUnique(); - - b.ToTable("Basedata_ItemGuideBook"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.Property("Id") - .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("ConversionRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStdPack") - .HasMaxLength(64) - .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("PackCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Company", "ItemCode", "PackCode") - .IsUnique(); - - b.ToTable("Basedata_ItemPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemQuality", b => - { - b.Property("Id") - .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(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectType") - .HasColumnType("int"); - - 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("Status") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "SupplierCode") - .IsUnique(); - - b.ToTable("Basedata_ItemQuality"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemSafetyStock", b => - { - b.Property("Id") - .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("FeedLine") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("MaxStock") - .HasColumnType("decimal(18,6)"); - - b.Property("MinStock") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SafetyStock") - .HasColumnType("decimal(18,6)"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "Company", "WarehouseCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemSafetyStock"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemStoreRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltUm") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AltUmQty") - .HasColumnType("decimal(18,6)"); - - 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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsFixed") - .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("MultiLoc") - .HasColumnType("int"); - - b.Property("PramaryUM") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UmQty") - .HasColumnType("decimal(18,6)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "Company", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemStoreRelation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ColumnCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - 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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ErpLocationCode") - .IsRequired() - .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("LocationGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickOrder") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("ShelfCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .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("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OverflowLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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_LocationGroup"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLineAggregateRootId") - .HasColumnType("uniqueidentifier"); - - b.Property("ProdLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStationId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineAggregateRootId"); - - b.HasIndex("WorkStationId"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Machine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Param", b => - { - b.Property("Id") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasColumnType("nvarchar(max)"); - - 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("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Param"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProdLineItem", b => - { - b.Property("Id") - .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("ItemCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProdLineCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineCode", "ItemCode", "Company") - .IsUnique(); - - b.ToTable("Basedata_ProdLineItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLine", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroupCode") - .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") - .HasColumnType("int"); - - b.Property("WorkshopCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_ProductionLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.Property("Id") - .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("CustomerCode") - .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.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Project"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.PurchasePriceSheet", b => - { - b.Property("Id") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_PurchasePriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Route", b => - { - b.Property("Id") - .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("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_Route"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Rule", b => - { - b.Property("Id") - .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") - .IsRequired() - .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("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.Property("Value") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Rule"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SalePriceSheet", b => - { - b.Property("Id") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("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", "CustomerId") - .IsUnique(); - - b.ToTable("Basedata_SalePriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.Property("Id") - .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("EndAtNextDay") - .HasColumnType("bit"); - - 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_Shift"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StdCostPriceSheet", b => - { - b.Property("Id") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company", "SupplierId") - .IsUnique(); - - b.ToTable("Basedata_StdCostPriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Strategy", b => - { - b.Property("Id") - .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(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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Strategy"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StrategyRule", b => - { - b.Property("Id") - .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("EffectiveTime") - .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("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StrategyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("StrategyId", "RuleId", "Company") - .IsUnique(); - - b.ToTable("Basedata_StrategyRule"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Supplier", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Bank") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - 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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Supplier"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.Property("Id") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("QtyPerPallet") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierSimpleName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode", "Company") - .IsUnique(); - - b.ToTable("Basedata_SupplierItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierTime", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeSlot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Week") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "Company", "TimeSlot", "Week") - .IsUnique(); - - b.ToTable("Basedata_SupplierTime"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Team", b => - { - b.Property("Id") - .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(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("Members") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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_Team"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.TransactionType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoAgreeRequest") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandleRequest") - .HasColumnType("bit"); - - b.Property("AutoSubmitRequest") - .HasColumnType("bit"); - - 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") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("InLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemTypes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OutInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OutLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("OutLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransSubType") - .HasColumnType("int"); - - b.Property("TransType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TransType", "TransSubType", "Company") - .IsUnique(); - - b.ToTable("Basedata_TransactionType"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Uom", b => - { - b.Property("Id") - .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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Uom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Warehouse", b => - { - b.Property("Id") - .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("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_Warehouse"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkGroup", b => - { - b.Property("Id") - .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("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_WorkGroup"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkShop", b => - { - b.Property("Id") - .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("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_WorkShop"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkStation", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionLineCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .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_WorkStation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("BomId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("BomId"); - - b1.ToTable("Basedata_Bom"); - - b1.WithOwner() - .HasForeignKey("BomId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PerQty", b1 => - { - b1.Property("BomId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BomId"); - - b1.ToTable("Basedata_Bom"); - - b1.WithOwner() - .HasForeignKey("BomId"); - }); - - b.Navigation("PerQty"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CalendarId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CalendarId"); - - b1.ToTable("Basedata_Calendar"); - - b1.WithOwner() - .HasForeignKey("CalendarId"); - }); - - b.Navigation("TimeRange") - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CustomerItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CustomerItemId"); - - b1.ToTable("Basedata_CustomerItem"); - - b1.WithOwner() - .HasForeignKey("CustomerItemId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "CustomerPackQty", b1 => - { - b1.Property("CustomerItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerItemId"); - - b1.ToTable("Basedata_CustomerItem"); - - b1.WithOwner() - .HasForeignKey("CustomerItemId"); - }); - - b.Navigation("CustomerPackQty"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.Dict", null) - .WithMany("Items") - .HasForeignKey("MasterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemGuideBookId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemGuideBookId"); - - b1.ToTable("Basedata_ItemGuideBook"); - - b1.WithOwner() - .HasForeignKey("ItemGuideBookId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PackQty", b1 => - { - b1.Property("ItemPackId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemPackId"); - - b1.ToTable("Basedata_ItemPack"); - - b1.WithOwner() - .HasForeignKey("ItemPackId"); - }); - - b.Navigation("PackQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.LocationSwitch", "LocSwitch", b1 => - { - b1.Property("LocationId") - .HasColumnType("uniqueidentifier"); - - b1.Property("EnableBreakStore") - .HasColumnType("bit"); - - b1.Property("EnableKeepZero") - .HasColumnType("bit"); - - b1.Property("EnableMixItem") - .HasColumnType("bit"); - - b1.Property("EnableMixLot") - .HasColumnType("bit"); - - b1.Property("EnableMixStatus") - .HasColumnType("bit"); - - b1.Property("EnableNegative") - .HasColumnType("bit"); - - b1.Property("EnableOpportunityCount") - .HasColumnType("bit"); - - b1.Property("EnableOverPick") - .HasColumnType("bit"); - - b1.Property("EnablePick") - .HasColumnType("bit"); - - b1.Property("EnableReceive") - .HasColumnType("bit"); - - b1.Property("EnableReturnFromCustomer") - .HasColumnType("bit"); - - b1.Property("EnableReturnToSupplier") - .HasColumnType("bit"); - - b1.Property("EnableShip") - .HasColumnType("bit"); - - b1.Property("EnableSplitBox") - .HasColumnType("bit"); - - b1.Property("EnableSplitPallet") - .HasColumnType("bit"); - - b1.Property("EnableWholeStore") - .HasColumnType("bit"); - - b1.HasKey("LocationId"); - - b1.ToTable("Basedata_Location"); - - b1.WithOwner() - .HasForeignKey("LocationId"); - }); - - b.Navigation("LocSwitch"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.LocationSwitch", "LocSwitch", b1 => - { - b1.Property("LocationGroupId") - .HasColumnType("uniqueidentifier"); - - b1.Property("EnableBreakStore") - .HasColumnType("bit"); - - b1.Property("EnableKeepZero") - .HasColumnType("bit"); - - b1.Property("EnableMixItem") - .HasColumnType("bit"); - - b1.Property("EnableMixLot") - .HasColumnType("bit"); - - b1.Property("EnableMixStatus") - .HasColumnType("bit"); - - b1.Property("EnableNegative") - .HasColumnType("bit"); - - b1.Property("EnableOpportunityCount") - .HasColumnType("bit"); - - b1.Property("EnableOverPick") - .HasColumnType("bit"); - - b1.Property("EnablePick") - .HasColumnType("bit"); - - b1.Property("EnableReceive") - .HasColumnType("bit"); - - b1.Property("EnableReturnFromCustomer") - .HasColumnType("bit"); - - b1.Property("EnableReturnToSupplier") - .HasColumnType("bit"); - - b1.Property("EnableShip") - .HasColumnType("bit"); - - b1.Property("EnableSplitBox") - .HasColumnType("bit"); - - b1.Property("EnableSplitPallet") - .HasColumnType("bit"); - - b1.Property("EnableWholeStore") - .HasColumnType("bit"); - - b1.HasKey("LocationGroupId"); - - b1.ToTable("Basedata_LocationGroup"); - - b1.WithOwner() - .HasForeignKey("LocationGroupId"); - }); - - b.Navigation("LocSwitch"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.ProductionLine", "ProdLineAggregateRoot") - .WithMany() - .HasForeignKey("ProdLineAggregateRootId"); - - b.HasOne("Win_in.Sfs.Basedata.Domain.WorkStation", "WorkStationAggregateRoot") - .WithMany() - .HasForeignKey("WorkStationId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("ProdLineAggregateRoot"); - - b.Navigation("WorkStationAggregateRoot"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("ProjectId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("ProjectId"); - - b1.ToTable("Basedata_Project"); - - b1.WithOwner() - .HasForeignKey("ProjectId"); - }); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("ShiftId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("ShiftId"); - - b1.ToTable("Basedata_Shift"); - - b1.WithOwner() - .HasForeignKey("ShiftId"); - }); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "SupplierPackQty", b1 => - { - b1.Property("SupplierItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierItemId"); - - b1.ToTable("Basedata_SupplierItem"); - - b1.WithOwner() - .HasForeignKey("SupplierItemId"); - }); - - b.Navigation("SupplierPackQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Navigation("Items"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103031911_ItemSafetyStockModifyIndexToUnique.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103031911_ItemSafetyStockModifyIndexToUnique.cs deleted file mode 100644 index 83e809a86..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103031911_ItemSafetyStockModifyIndexToUnique.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Basedata.Migrations; - -public partial class ItemSafetyStockModifyIndexToUnique : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemSafetyStock_ItemCode_Company_StoreRelationType_StoreValue", - table: "Basedata_ItemSafetyStock"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemSafetyStock_ItemCode_Company_WarehouseCode_StoreRelationType_StoreValue", - table: "Basedata_ItemSafetyStock", - columns: new[] { "ItemCode", "Company", "WarehouseCode", "StoreRelationType", "StoreValue" }, - unique: true, - filter: "[StoreValue] IS NOT NULL"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemSafetyStock_ItemCode_Company_WarehouseCode_StoreRelationType_StoreValue", - table: "Basedata_ItemSafetyStock"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemSafetyStock_ItemCode_Company_StoreRelationType_StoreValue", - table: "Basedata_ItemSafetyStock", - columns: new[] { "ItemCode", "Company", "StoreRelationType", "StoreValue" }); - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103035714_Modify20230103.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103035714_Modify20230103.Designer.cs deleted file mode 100644 index 59f09f5d5..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103035714_Modify20230103.Designer.cs +++ /dev/null @@ -1,4627 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Basedata.EntityFrameworkCore; - -namespace Win_in.Sfs.Basedata.Migrations -{ - [DbContext(typeof(BasedataDbContext))] - [Migration("20230103035714_Modify20230103")] - partial class Modify20230103 - { - protected override void BuildTargetModel(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") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CeilingQty") - .HasColumnType("decimal(18,6)"); - - 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,6)"); - - 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,6)"); - - b.Property("SampleQty") - .HasColumnType("decimal(18,6)"); - - 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") - .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") - .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") - .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") - .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") - .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") - .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") - .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") - .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") - .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,6)"); - - 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") - .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("ShortName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .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") - .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,6)"); - - 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") - .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.Dict", b => - { - b.Property("Id") - .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("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_Dict"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterId") - .HasColumnType("uniqueidentifier"); - - 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("Value") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterId"); - - b.ToTable("Basedata_DictItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b => - { - b.Property("Id") - .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.DocumentSetting", 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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberFormat") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberPrefix") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSeparator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSerialLength") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransactionType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Code") - .IsUnique(); - - b.ToTable("Basedata_DocumentSetting"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b => - { - b.Property("Id") - .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") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Company") - .HasColumnType("nvarchar(450)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConvertToTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Month") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique() - .HasFilter("[Company] IS NOT NULL"); - - b.ToTable("Basedata_InterfaceCalendar"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InventoryRoute", b => - { - b.Property("Id") - .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("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_InventoryRoute"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemBasic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BasicUom") - .HasColumnType("nvarchar(max)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("CanOutsourcing") - .HasColumnType("bit"); - - b.Property("Category") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Color") - .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("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Eco") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Elevel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("IsRecycled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManageType") - .HasColumnType("int"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Validity") - .HasColumnType("int"); - - b.Property("ValidityUnit") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_ItemBasic"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryCode") - .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("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("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "CategoryCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemCategory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.Property("Id") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PictureBlobName") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Step") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "Company") - .IsUnique(); - - b.ToTable("Basedata_ItemGuideBook"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.Property("Id") - .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("ConversionRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStdPack") - .HasMaxLength(64) - .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("PackCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Company", "ItemCode", "PackCode") - .IsUnique(); - - b.ToTable("Basedata_ItemPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemQuality", b => - { - b.Property("Id") - .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(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectType") - .HasColumnType("int"); - - 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("Status") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "SupplierCode") - .IsUnique(); - - b.ToTable("Basedata_ItemQuality"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemSafetyStock", b => - { - b.Property("Id") - .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("FeedLine") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("MaxStock") - .HasColumnType("decimal(18,6)"); - - b.Property("MinStock") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SafetyStock") - .HasColumnType("decimal(18,6)"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "Company", "WarehouseCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemSafetyStock"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemStoreRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltUm") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AltUmQty") - .HasColumnType("decimal(18,6)"); - - 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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsFixed") - .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("MultiLoc") - .HasColumnType("int"); - - b.Property("PramaryUM") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UmQty") - .HasColumnType("decimal(18,6)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "Company", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemStoreRelation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ColumnCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - 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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ErpLocationCode") - .IsRequired() - .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("LocationGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickOrder") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("ShelfCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .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("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OverflowLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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_LocationGroup"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStationId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Machine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Param", b => - { - b.Property("Id") - .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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasColumnType("nvarchar(max)"); - - 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("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Param"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProdLineItem", b => - { - b.Property("Id") - .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("ItemCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProdLineCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineCode", "ItemCode", "Company") - .IsUnique(); - - b.ToTable("Basedata_ProdLineItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLine", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroupCode") - .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") - .HasColumnType("int"); - - b.Property("WorkshopCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_ProductionLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.Property("Id") - .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("CustomerCode") - .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.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Project"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.PurchasePriceSheet", b => - { - b.Property("Id") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_PurchasePriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Route", b => - { - b.Property("Id") - .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("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_Route"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Rule", b => - { - b.Property("Id") - .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") - .IsRequired() - .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("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.Property("Value") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Rule"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SalePriceSheet", b => - { - b.Property("Id") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("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", "CustomerId") - .IsUnique(); - - b.ToTable("Basedata_SalePriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.Property("Id") - .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("EndAtNextDay") - .HasColumnType("bit"); - - 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_Shift"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StdCostPriceSheet", b => - { - b.Property("Id") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company", "SupplierId") - .IsUnique(); - - b.ToTable("Basedata_StdCostPriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Strategy", b => - { - b.Property("Id") - .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(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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Strategy"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StrategyRule", b => - { - b.Property("Id") - .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("EffectiveTime") - .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("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StrategyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("StrategyId", "RuleId", "Company") - .IsUnique(); - - b.ToTable("Basedata_StrategyRule"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Supplier", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Bank") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - 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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Supplier"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.Property("Id") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("QtyPerPallet") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierSimpleName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode", "Company") - .IsUnique(); - - b.ToTable("Basedata_SupplierItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierTime", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeSlot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Week") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "Company", "TimeSlot", "Week") - .IsUnique(); - - b.ToTable("Basedata_SupplierTime"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Team", b => - { - b.Property("Id") - .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(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("Members") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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_Team"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.TransactionType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoAgreeRequest") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandleRequest") - .HasColumnType("bit"); - - b.Property("AutoSubmitRequest") - .HasColumnType("bit"); - - 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") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("InLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OutInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OutLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("OutLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransSubType") - .HasColumnType("int"); - - b.Property("TransType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TransType", "TransSubType", "Company") - .IsUnique(); - - b.ToTable("Basedata_TransactionType"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Uom", b => - { - b.Property("Id") - .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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_Uom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Warehouse", b => - { - b.Property("Id") - .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("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_Warehouse"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkGroup", b => - { - b.Property("Id") - .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("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code", "Company") - .IsUnique(); - - b.ToTable("Basedata_WorkGroup"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkShop", b => - { - b.Property("Id") - .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("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_WorkShop"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkStation", b => - { - b.Property("Id") - .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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionLineCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .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_WorkStation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("BomId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("BomId"); - - b1.ToTable("Basedata_Bom"); - - b1.WithOwner() - .HasForeignKey("BomId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PerQty", b1 => - { - b1.Property("BomId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BomId"); - - b1.ToTable("Basedata_Bom"); - - b1.WithOwner() - .HasForeignKey("BomId"); - }); - - b.Navigation("PerQty"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CalendarId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CalendarId"); - - b1.ToTable("Basedata_Calendar"); - - b1.WithOwner() - .HasForeignKey("CalendarId"); - }); - - b.Navigation("TimeRange") - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CustomerItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CustomerItemId"); - - b1.ToTable("Basedata_CustomerItem"); - - b1.WithOwner() - .HasForeignKey("CustomerItemId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "CustomerPackQty", b1 => - { - b1.Property("CustomerItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerItemId"); - - b1.ToTable("Basedata_CustomerItem"); - - b1.WithOwner() - .HasForeignKey("CustomerItemId"); - }); - - b.Navigation("CustomerPackQty"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.Dict", null) - .WithMany("Items") - .HasForeignKey("MasterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemGuideBookId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemGuideBookId"); - - b1.ToTable("Basedata_ItemGuideBook"); - - b1.WithOwner() - .HasForeignKey("ItemGuideBookId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PackQty", b1 => - { - b1.Property("ItemPackId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemPackId"); - - b1.ToTable("Basedata_ItemPack"); - - b1.WithOwner() - .HasForeignKey("ItemPackId"); - }); - - b.Navigation("PackQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.LocationSwitch", "LocSwitch", b1 => - { - b1.Property("LocationId") - .HasColumnType("uniqueidentifier"); - - b1.Property("EnableBreakStore") - .HasColumnType("bit"); - - b1.Property("EnableKeepZero") - .HasColumnType("bit"); - - b1.Property("EnableMixItem") - .HasColumnType("bit"); - - b1.Property("EnableMixLot") - .HasColumnType("bit"); - - b1.Property("EnableMixStatus") - .HasColumnType("bit"); - - b1.Property("EnableNegative") - .HasColumnType("bit"); - - b1.Property("EnableOpportunityCount") - .HasColumnType("bit"); - - b1.Property("EnableOverPick") - .HasColumnType("bit"); - - b1.Property("EnablePick") - .HasColumnType("bit"); - - b1.Property("EnableReceive") - .HasColumnType("bit"); - - b1.Property("EnableReturnFromCustomer") - .HasColumnType("bit"); - - b1.Property("EnableReturnToSupplier") - .HasColumnType("bit"); - - b1.Property("EnableShip") - .HasColumnType("bit"); - - b1.Property("EnableSplitBox") - .HasColumnType("bit"); - - b1.Property("EnableSplitPallet") - .HasColumnType("bit"); - - b1.Property("EnableWholeStore") - .HasColumnType("bit"); - - b1.HasKey("LocationId"); - - b1.ToTable("Basedata_Location"); - - b1.WithOwner() - .HasForeignKey("LocationId"); - }); - - b.Navigation("LocSwitch"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.LocationSwitch", "LocSwitch", b1 => - { - b1.Property("LocationGroupId") - .HasColumnType("uniqueidentifier"); - - b1.Property("EnableBreakStore") - .HasColumnType("bit"); - - b1.Property("EnableKeepZero") - .HasColumnType("bit"); - - b1.Property("EnableMixItem") - .HasColumnType("bit"); - - b1.Property("EnableMixLot") - .HasColumnType("bit"); - - b1.Property("EnableMixStatus") - .HasColumnType("bit"); - - b1.Property("EnableNegative") - .HasColumnType("bit"); - - b1.Property("EnableOpportunityCount") - .HasColumnType("bit"); - - b1.Property("EnableOverPick") - .HasColumnType("bit"); - - b1.Property("EnablePick") - .HasColumnType("bit"); - - b1.Property("EnableReceive") - .HasColumnType("bit"); - - b1.Property("EnableReturnFromCustomer") - .HasColumnType("bit"); - - b1.Property("EnableReturnToSupplier") - .HasColumnType("bit"); - - b1.Property("EnableShip") - .HasColumnType("bit"); - - b1.Property("EnableSplitBox") - .HasColumnType("bit"); - - b1.Property("EnableSplitPallet") - .HasColumnType("bit"); - - b1.Property("EnableWholeStore") - .HasColumnType("bit"); - - b1.HasKey("LocationGroupId"); - - b1.ToTable("Basedata_LocationGroup"); - - b1.WithOwner() - .HasForeignKey("LocationGroupId"); - }); - - b.Navigation("LocSwitch"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("ProjectId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("ProjectId"); - - b1.ToTable("Basedata_Project"); - - b1.WithOwner() - .HasForeignKey("ProjectId"); - }); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("ShiftId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("ShiftId"); - - b1.ToTable("Basedata_Shift"); - - b1.WithOwner() - .HasForeignKey("ShiftId"); - }); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "SupplierPackQty", b1 => - { - b1.Property("SupplierItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierItemId"); - - b1.ToTable("Basedata_SupplierItem"); - - b1.WithOwner() - .HasForeignKey("SupplierItemId"); - }); - - b.Navigation("SupplierPackQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Navigation("Items"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103035714_Modify20230103.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103035714_Modify20230103.cs deleted file mode 100644 index b7dfbd094..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230103035714_Modify20230103.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Basedata.Migrations; - -public partial class Modify20230103 : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_Basedata_Machine_Basedata_ProductionLine_ProdLineAggregateRootId", - table: "Basedata_Machine"); - - migrationBuilder.DropForeignKey( - name: "FK_Basedata_Machine_Basedata_WorkStation_WorkStationId", - table: "Basedata_Machine"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Machine_ProdLineAggregateRootId", - table: "Basedata_Machine"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Machine_WorkStationId", - table: "Basedata_Machine"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemCategory_Company_CategoryCode_ItemCode_Value", - table: "Basedata_ItemCategory"); - - migrationBuilder.DropColumn( - name: "ProdLineAggregateRootId", - table: "Basedata_Machine"); - - migrationBuilder.AlterColumn( - name: "ItemTypes", - table: "Basedata_TransactionType", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemCategory_Company_CategoryCode_ItemCode", - table: "Basedata_ItemCategory", - columns: new[] { "Company", "CategoryCode", "ItemCode" }, - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemCategory_Company_CategoryCode_ItemCode", - table: "Basedata_ItemCategory"); - - migrationBuilder.AlterColumn( - name: "ItemTypes", - table: "Basedata_TransactionType", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ProdLineAggregateRootId", - table: "Basedata_Machine", - type: "uniqueidentifier", - nullable: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Machine_ProdLineAggregateRootId", - table: "Basedata_Machine", - column: "ProdLineAggregateRootId"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Machine_WorkStationId", - table: "Basedata_Machine", - column: "WorkStationId"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemCategory_Company_CategoryCode_ItemCode_Value", - table: "Basedata_ItemCategory", - columns: new[] { "Company", "CategoryCode", "ItemCode", "Value" }, - unique: true); - - migrationBuilder.AddForeignKey( - name: "FK_Basedata_Machine_Basedata_ProductionLine_ProdLineAggregateRootId", - table: "Basedata_Machine", - column: "ProdLineAggregateRootId", - principalTable: "Basedata_ProductionLine", - principalColumn: "Id", - onDelete: ReferentialAction.Restrict); - - migrationBuilder.AddForeignKey( - name: "FK_Basedata_Machine_Basedata_WorkStation_WorkStationId", - table: "Basedata_Machine", - column: "WorkStationId", - principalTable: "Basedata_WorkStation", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230104024643_RemoveCompany.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230104024643_RemoveCompany.Designer.cs deleted file mode 100644 index fb804b8c6..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230104024643_RemoveCompany.Designer.cs +++ /dev/null @@ -1,4242 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Basedata.EntityFrameworkCore; - -namespace Win_in.Sfs.Basedata.Migrations -{ - [DbContext(typeof(BasedataDbContext))] - [Migration("20230104024643_RemoveCompany")] - partial class RemoveCompany - { - protected override void BuildTargetModel(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") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CeilingQty") - .HasColumnType("decimal(18,6)"); - - 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,6)"); - - 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,6)"); - - b.Property("SampleQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode", "FloorQty") - .IsUnique(); - - b.ToTable("Basedata_AQL"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Area", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaType") - .HasColumnType("int"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Area"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AreaItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Allowed") - .HasColumnType("bit"); - - b.Property("AreaId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("AreaId", "ItemId") - .IsUnique(); - - b.ToTable("Basedata_AreaItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - 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", "Component") - .IsUnique(); - - b.ToTable("Basedata_Bom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("Module") - .IsUnique(); - - b.ToTable("Basedata_Calendar"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Category", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Category"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Configuration", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("Key") - .IsUnique(); - - b.ToTable("Basedata_Configuration"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Currency", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Currency"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CurrencyExchange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicCurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CurrencyId", "BasicCurrencyId") - .IsUnique(); - - b.ToTable("Basedata_CurrencyExchange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Customer", b => - { - b.Property("Id") - .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("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("ShortName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Customer"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerAddress", b => - { - b.Property("Id") - .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("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("Code", "CustomerCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerAddress"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerBom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CustomerId", "ParentItemId", "ChildItemId") - .IsUnique(); - - b.ToTable("Basedata_CustomerBom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(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("CustomerCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dict"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterId") - .HasColumnType("uniqueidentifier"); - - 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("Value") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterId"); - - b.ToTable("Basedata_DictItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dock"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DocumentSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberFormat") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberPrefix") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSeparator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSerialLength") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransactionType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_DocumentSetting"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_ErpLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InterfaceCalendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConvertToTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Month") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_InterfaceCalendar"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InventoryRoute", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_InventoryRoute"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemBasic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BasicUom") - .HasColumnType("nvarchar(max)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("CanOutsourcing") - .HasColumnType("bit"); - - b.Property("Category") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Color") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Eco") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Elevel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("IsRecycled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManageType") - .HasColumnType("int"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Validity") - .HasColumnType("int"); - - b.Property("ValidityUnit") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ItemBasic"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryCode") - .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("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("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("CategoryCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemCategory"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("PictureBlobName") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Step") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemGuideBook"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConversionRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsStdPack") - .HasMaxLength(64) - .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("PackCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "PackCode") - .IsUnique(); - - b.ToTable("Basedata_ItemPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemQuality", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectType") - .HasColumnType("int"); - - 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("Status") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "SupplierCode") - .IsUnique(); - - b.ToTable("Basedata_ItemQuality"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemSafetyStock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FeedLine") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("MaxStock") - .HasColumnType("decimal(18,6)"); - - b.Property("MinStock") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SafetyStock") - .HasColumnType("decimal(18,6)"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "WarehouseCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemSafetyStock"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemStoreRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltUm") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AltUmQty") - .HasColumnType("decimal(18,6)"); - - 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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsFixed") - .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("MultiLoc") - .HasColumnType("int"); - - b.Property("PramaryUM") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UmQty") - .HasColumnType("decimal(18,6)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemStoreRelation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ColumnCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - 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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ErpLocationCode") - .IsRequired() - .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("LocationGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickOrder") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("ShelfCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OverflowLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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") - .IsUnique(); - - b.ToTable("Basedata_LocationGroup"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStationId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Machine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Param", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasColumnType("nvarchar(max)"); - - 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("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Param"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProdLineItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProdLineCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ProdLineItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroupCode") - .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") - .HasColumnType("int"); - - b.Property("WorkshopCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ProductionLine"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .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.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Project"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.PurchasePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_PurchasePriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Route", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Route"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Rule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .IsRequired() - .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("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.Property("Value") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Rule"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SalePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("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", "CustomerId") - .IsUnique(); - - b.ToTable("Basedata_SalePriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EndAtNextDay") - .HasColumnType("bit"); - - 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") - .IsUnique(); - - b.ToTable("Basedata_Shift"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StdCostPriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "SupplierId") - .IsUnique(); - - b.ToTable("Basedata_StdCostPriceSheet"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Strategy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Strategy"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StrategyRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveTime") - .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("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StrategyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("StrategyId", "RuleId") - .IsUnique(); - - b.ToTable("Basedata_StrategyRule"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Supplier", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Bank") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("City") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - 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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Supplier"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("QtyPerPallet") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierSimpleName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_SupplierItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierTime", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - 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("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeSlot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Week") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "TimeSlot", "Week") - .IsUnique(); - - b.ToTable("Basedata_SupplierTime"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Team", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Members") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .IsUnique(); - - b.ToTable("Basedata_Team"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.TransactionType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoAgreeRequest") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandleRequest") - .HasColumnType("bit"); - - b.Property("AutoSubmitRequest") - .HasColumnType("bit"); - - 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") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("InLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OutInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OutLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("OutLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransSubType") - .HasColumnType("int"); - - b.Property("TransType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TransType", "TransSubType") - .IsUnique(); - - b.ToTable("Basedata_TransactionType"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Uom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Uom"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Warehouse", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Warehouse"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_WorkGroup"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkShop", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_WorkShop"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkStation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionLineCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .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") - .IsUnique(); - - b.ToTable("Basedata_WorkStation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("BomId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("BomId"); - - b1.ToTable("Basedata_Bom"); - - b1.WithOwner() - .HasForeignKey("BomId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PerQty", b1 => - { - b1.Property("BomId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BomId"); - - b1.ToTable("Basedata_Bom"); - - b1.WithOwner() - .HasForeignKey("BomId"); - }); - - b.Navigation("PerQty"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CalendarId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CalendarId"); - - b1.ToTable("Basedata_Calendar"); - - b1.WithOwner() - .HasForeignKey("CalendarId"); - }); - - b.Navigation("TimeRange") - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CustomerItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CustomerItemId"); - - b1.ToTable("Basedata_CustomerItem"); - - b1.WithOwner() - .HasForeignKey("CustomerItemId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "CustomerPackQty", b1 => - { - b1.Property("CustomerItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerItemId"); - - b1.ToTable("Basedata_CustomerItem"); - - b1.WithOwner() - .HasForeignKey("CustomerItemId"); - }); - - b.Navigation("CustomerPackQty"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.Dict", null) - .WithMany("Items") - .HasForeignKey("MasterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemGuideBookId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemGuideBookId"); - - b1.ToTable("Basedata_ItemGuideBook"); - - b1.WithOwner() - .HasForeignKey("ItemGuideBookId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PackQty", b1 => - { - b1.Property("ItemPackId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemPackId"); - - b1.ToTable("Basedata_ItemPack"); - - b1.WithOwner() - .HasForeignKey("ItemPackId"); - }); - - b.Navigation("PackQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.LocationSwitch", "LocSwitch", b1 => - { - b1.Property("LocationId") - .HasColumnType("uniqueidentifier"); - - b1.Property("EnableBreakStore") - .HasColumnType("bit"); - - b1.Property("EnableKeepZero") - .HasColumnType("bit"); - - b1.Property("EnableMixItem") - .HasColumnType("bit"); - - b1.Property("EnableMixLot") - .HasColumnType("bit"); - - b1.Property("EnableMixStatus") - .HasColumnType("bit"); - - b1.Property("EnableNegative") - .HasColumnType("bit"); - - b1.Property("EnableOpportunityCount") - .HasColumnType("bit"); - - b1.Property("EnableOverPick") - .HasColumnType("bit"); - - b1.Property("EnablePick") - .HasColumnType("bit"); - - b1.Property("EnableReceive") - .HasColumnType("bit"); - - b1.Property("EnableReturnFromCustomer") - .HasColumnType("bit"); - - b1.Property("EnableReturnToSupplier") - .HasColumnType("bit"); - - b1.Property("EnableShip") - .HasColumnType("bit"); - - b1.Property("EnableSplitBox") - .HasColumnType("bit"); - - b1.Property("EnableSplitPallet") - .HasColumnType("bit"); - - b1.Property("EnableWholeStore") - .HasColumnType("bit"); - - b1.HasKey("LocationId"); - - b1.ToTable("Basedata_Location"); - - b1.WithOwner() - .HasForeignKey("LocationId"); - }); - - b.Navigation("LocSwitch"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.LocationSwitch", "LocSwitch", b1 => - { - b1.Property("LocationGroupId") - .HasColumnType("uniqueidentifier"); - - b1.Property("EnableBreakStore") - .HasColumnType("bit"); - - b1.Property("EnableKeepZero") - .HasColumnType("bit"); - - b1.Property("EnableMixItem") - .HasColumnType("bit"); - - b1.Property("EnableMixLot") - .HasColumnType("bit"); - - b1.Property("EnableMixStatus") - .HasColumnType("bit"); - - b1.Property("EnableNegative") - .HasColumnType("bit"); - - b1.Property("EnableOpportunityCount") - .HasColumnType("bit"); - - b1.Property("EnableOverPick") - .HasColumnType("bit"); - - b1.Property("EnablePick") - .HasColumnType("bit"); - - b1.Property("EnableReceive") - .HasColumnType("bit"); - - b1.Property("EnableReturnFromCustomer") - .HasColumnType("bit"); - - b1.Property("EnableReturnToSupplier") - .HasColumnType("bit"); - - b1.Property("EnableShip") - .HasColumnType("bit"); - - b1.Property("EnableSplitBox") - .HasColumnType("bit"); - - b1.Property("EnableSplitPallet") - .HasColumnType("bit"); - - b1.Property("EnableWholeStore") - .HasColumnType("bit"); - - b1.HasKey("LocationGroupId"); - - b1.ToTable("Basedata_LocationGroup"); - - b1.WithOwner() - .HasForeignKey("LocationGroupId"); - }); - - b.Navigation("LocSwitch"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("ProjectId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("ProjectId"); - - b1.ToTable("Basedata_Project"); - - b1.WithOwner() - .HasForeignKey("ProjectId"); - }); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("ShiftId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("ShiftId"); - - b1.ToTable("Basedata_Shift"); - - b1.WithOwner() - .HasForeignKey("ShiftId"); - }); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "SupplierPackQty", b1 => - { - b1.Property("SupplierItemId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierItemId"); - - b1.ToTable("Basedata_SupplierItem"); - - b1.WithOwner() - .HasForeignKey("SupplierItemId"); - }); - - b.Navigation("SupplierPackQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Navigation("Items"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230104024643_RemoveCompany.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230104024643_RemoveCompany.cs deleted file mode 100644 index 1db1f7ee3..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230104024643_RemoveCompany.cs +++ /dev/null @@ -1,1675 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Basedata.Migrations; - -public partial class RemoveCompany : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Basedata_Company"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_WorkStation_Code_Company", - table: "Basedata_WorkStation"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_WorkShop_Code_Company", - table: "Basedata_WorkShop"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_WorkGroup_Code_Company", - table: "Basedata_WorkGroup"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Warehouse_Code_Company", - table: "Basedata_Warehouse"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Uom_Code_Company", - table: "Basedata_Uom"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_TransactionType_TransType_TransSubType_Company", - table: "Basedata_TransactionType"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Team_Code_Company", - table: "Basedata_Team"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_SupplierTime_SupplierCode_Company_TimeSlot_Week", - table: "Basedata_SupplierTime"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_SupplierItem_SupplierCode_ItemCode_Company", - table: "Basedata_SupplierItem"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Supplier_Code_Company", - table: "Basedata_Supplier"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_StrategyRule_StrategyId_RuleId_Company", - table: "Basedata_StrategyRule"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Strategy_Code_Company", - table: "Basedata_Strategy"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_StdCostPriceSheet_Code_Company_SupplierId", - table: "Basedata_StdCostPriceSheet"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Shift_Code_Company", - table: "Basedata_Shift"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_SalePriceSheet_Code_Company_CustomerId", - table: "Basedata_SalePriceSheet"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Rule_Code_Company", - table: "Basedata_Rule"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Route_Code_Company", - table: "Basedata_Route"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_PurchasePriceSheet_Code_Company", - table: "Basedata_PurchasePriceSheet"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Project_Code_Company", - table: "Basedata_Project"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ProductionLine_Code_Company", - table: "Basedata_ProductionLine"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ProdLineItem_ProdLineCode_ItemCode_Company", - table: "Basedata_ProdLineItem"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Param_Code_Company", - table: "Basedata_Param"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Machine_Code_Company", - table: "Basedata_Machine"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_LocationGroup_Code_Company", - table: "Basedata_LocationGroup"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Location_Code_Company", - table: "Basedata_Location"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemStoreRelation_ItemCode_Company_StoreRelationType_StoreValue", - table: "Basedata_ItemStoreRelation"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemSafetyStock_ItemCode_Company_WarehouseCode_StoreRelationType_StoreValue", - table: "Basedata_ItemSafetyStock"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemPack_Company_ItemCode_PackCode", - table: "Basedata_ItemPack"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemGuideBook_ItemCode_Company", - table: "Basedata_ItemGuideBook"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemCategory_Company_CategoryCode_ItemCode", - table: "Basedata_ItemCategory"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemBasic_Code_Company", - table: "Basedata_ItemBasic"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_InventoryRoute_Code_Company", - table: "Basedata_InventoryRoute"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_InterfaceCalendar_Code_Company", - table: "Basedata_InterfaceCalendar"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ErpLocation_Code_Company", - table: "Basedata_ErpLocation"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_DocumentSetting_Company_Code", - table: "Basedata_DocumentSetting"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Dock_Code_Company", - table: "Basedata_Dock"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Dict_Code_Company", - table: "Basedata_Dict"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_CustomerItem_Company_CustomerCode_ItemCode", - table: "Basedata_CustomerItem"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_CustomerBom_Company_CustomerId_ParentItemId_ChildItemId", - table: "Basedata_CustomerBom"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_CustomerAddress_Company_Code_CustomerCode", - table: "Basedata_CustomerAddress"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Customer_Code_Company", - table: "Basedata_Customer"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_CurrencyExchange_Company_CurrencyId_BasicCurrencyId", - table: "Basedata_CurrencyExchange"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Currency_Code_Company", - table: "Basedata_Currency"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Configuration_Company", - table: "Basedata_Configuration"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Category_Code_Company", - table: "Basedata_Category"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Calendar_Company", - table: "Basedata_Calendar"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Bom_Product_Company_Component", - table: "Basedata_Bom"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_AreaItem_Company_AreaId_ItemId", - table: "Basedata_AreaItem"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Area_Code_Company", - table: "Basedata_Area"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_AQL_SupplierCode_ItemCode_FloorQty_Company", - table: "Basedata_AQL"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_WorkStation"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_WorkShop"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_WorkGroup"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Warehouse"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Uom"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_TransactionType"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Team"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_SupplierTime"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_SupplierItem"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Supplier"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_StrategyRule"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Strategy"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_StdCostPriceSheet"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Shift"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_SalePriceSheet"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Rule"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Route"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_PurchasePriceSheet"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Project"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_ProductionLine"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_ProdLineItem"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Param"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Machine"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_LocationGroup"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Location"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_ItemStoreRelation"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_ItemSafetyStock"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_ItemQuality"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_ItemPack"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_ItemGuideBook"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_ItemCategory"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_ItemBasic"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_InventoryRoute"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_InterfaceCalendar"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_ErpLocation"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_DocumentSetting"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Dock"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Dict"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_CustomerItem"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_CustomerBom"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_CustomerAddress"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Customer"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_CurrencyExchange"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Currency"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Configuration"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Category"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Calendar"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Bom"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_AreaItem"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_Area"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Basedata_AQL"); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Basedata_ItemBasic", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_WorkStation_Code", - table: "Basedata_WorkStation", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_WorkShop_Code", - table: "Basedata_WorkShop", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_WorkGroup_Code", - table: "Basedata_WorkGroup", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Warehouse_Code", - table: "Basedata_Warehouse", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Uom_Code", - table: "Basedata_Uom", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_TransactionType_TransType_TransSubType", - table: "Basedata_TransactionType", - columns: new[] { "TransType", "TransSubType" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Team_Code", - table: "Basedata_Team", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SupplierTime_SupplierCode_TimeSlot_Week", - table: "Basedata_SupplierTime", - columns: new[] { "SupplierCode", "TimeSlot", "Week" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SupplierItem_SupplierCode_ItemCode", - table: "Basedata_SupplierItem", - columns: new[] { "SupplierCode", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Supplier_Code", - table: "Basedata_Supplier", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_StrategyRule_StrategyId_RuleId", - table: "Basedata_StrategyRule", - columns: new[] { "StrategyId", "RuleId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Strategy_Code", - table: "Basedata_Strategy", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_StdCostPriceSheet_Code_SupplierId", - table: "Basedata_StdCostPriceSheet", - columns: new[] { "Code", "SupplierId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Shift_Code", - table: "Basedata_Shift", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SalePriceSheet_Code_CustomerId", - table: "Basedata_SalePriceSheet", - columns: new[] { "Code", "CustomerId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Rule_Code", - table: "Basedata_Rule", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Route_Code", - table: "Basedata_Route", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_PurchasePriceSheet_Code", - table: "Basedata_PurchasePriceSheet", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Project_Code", - table: "Basedata_Project", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ProductionLine_Code", - table: "Basedata_ProductionLine", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ProdLineItem_ProdLineCode_ItemCode", - table: "Basedata_ProdLineItem", - columns: new[] { "ProdLineCode", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Param_Code", - table: "Basedata_Param", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Machine_Code", - table: "Basedata_Machine", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_LocationGroup_Code", - table: "Basedata_LocationGroup", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Location_Code", - table: "Basedata_Location", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemStoreRelation_ItemCode_StoreRelationType_StoreValue", - table: "Basedata_ItemStoreRelation", - columns: new[] { "ItemCode", "StoreRelationType", "StoreValue" }, - unique: true, - filter: "[StoreValue] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemSafetyStock_ItemCode_WarehouseCode_StoreRelationType_StoreValue", - table: "Basedata_ItemSafetyStock", - columns: new[] { "ItemCode", "WarehouseCode", "StoreRelationType", "StoreValue" }, - unique: true, - filter: "[StoreValue] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemPack_ItemCode_PackCode", - table: "Basedata_ItemPack", - columns: new[] { "ItemCode", "PackCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemGuideBook_ItemCode", - table: "Basedata_ItemGuideBook", - column: "ItemCode", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemCategory_CategoryCode_ItemCode", - table: "Basedata_ItemCategory", - columns: new[] { "CategoryCode", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemBasic_Code", - table: "Basedata_ItemBasic", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_InventoryRoute_Code", - table: "Basedata_InventoryRoute", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_InterfaceCalendar_Code", - table: "Basedata_InterfaceCalendar", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ErpLocation_Code", - table: "Basedata_ErpLocation", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_DocumentSetting_Code", - table: "Basedata_DocumentSetting", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Dock_Code", - table: "Basedata_Dock", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Dict_Code", - table: "Basedata_Dict", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CustomerItem_CustomerCode_ItemCode", - table: "Basedata_CustomerItem", - columns: new[] { "CustomerCode", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CustomerBom_CustomerId_ParentItemId_ChildItemId", - table: "Basedata_CustomerBom", - columns: new[] { "CustomerId", "ParentItemId", "ChildItemId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CustomerAddress_Code_CustomerCode", - table: "Basedata_CustomerAddress", - columns: new[] { "Code", "CustomerCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Customer_Code", - table: "Basedata_Customer", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CurrencyExchange_CurrencyId_BasicCurrencyId", - table: "Basedata_CurrencyExchange", - columns: new[] { "CurrencyId", "BasicCurrencyId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Currency_Code", - table: "Basedata_Currency", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Configuration_Key", - table: "Basedata_Configuration", - column: "Key", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Category_Code", - table: "Basedata_Category", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Calendar_Module", - table: "Basedata_Calendar", - column: "Module", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Bom_Product_Component", - table: "Basedata_Bom", - columns: new[] { "Product", "Component" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_AreaItem_AreaId_ItemId", - table: "Basedata_AreaItem", - columns: new[] { "AreaId", "ItemId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Area_Code", - table: "Basedata_Area", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_AQL_SupplierCode_ItemCode_FloorQty", - table: "Basedata_AQL", - columns: new[] { "SupplierCode", "ItemCode", "FloorQty" }, - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Basedata_WorkStation_Code", - table: "Basedata_WorkStation"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_WorkShop_Code", - table: "Basedata_WorkShop"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_WorkGroup_Code", - table: "Basedata_WorkGroup"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Warehouse_Code", - table: "Basedata_Warehouse"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Uom_Code", - table: "Basedata_Uom"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_TransactionType_TransType_TransSubType", - table: "Basedata_TransactionType"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Team_Code", - table: "Basedata_Team"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_SupplierTime_SupplierCode_TimeSlot_Week", - table: "Basedata_SupplierTime"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_SupplierItem_SupplierCode_ItemCode", - table: "Basedata_SupplierItem"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Supplier_Code", - table: "Basedata_Supplier"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_StrategyRule_StrategyId_RuleId", - table: "Basedata_StrategyRule"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Strategy_Code", - table: "Basedata_Strategy"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_StdCostPriceSheet_Code_SupplierId", - table: "Basedata_StdCostPriceSheet"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Shift_Code", - table: "Basedata_Shift"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_SalePriceSheet_Code_CustomerId", - table: "Basedata_SalePriceSheet"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Rule_Code", - table: "Basedata_Rule"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Route_Code", - table: "Basedata_Route"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_PurchasePriceSheet_Code", - table: "Basedata_PurchasePriceSheet"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Project_Code", - table: "Basedata_Project"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ProductionLine_Code", - table: "Basedata_ProductionLine"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ProdLineItem_ProdLineCode_ItemCode", - table: "Basedata_ProdLineItem"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Param_Code", - table: "Basedata_Param"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Machine_Code", - table: "Basedata_Machine"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_LocationGroup_Code", - table: "Basedata_LocationGroup"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Location_Code", - table: "Basedata_Location"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemStoreRelation_ItemCode_StoreRelationType_StoreValue", - table: "Basedata_ItemStoreRelation"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemSafetyStock_ItemCode_WarehouseCode_StoreRelationType_StoreValue", - table: "Basedata_ItemSafetyStock"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemPack_ItemCode_PackCode", - table: "Basedata_ItemPack"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemGuideBook_ItemCode", - table: "Basedata_ItemGuideBook"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemCategory_CategoryCode_ItemCode", - table: "Basedata_ItemCategory"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ItemBasic_Code", - table: "Basedata_ItemBasic"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_InventoryRoute_Code", - table: "Basedata_InventoryRoute"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_InterfaceCalendar_Code", - table: "Basedata_InterfaceCalendar"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_ErpLocation_Code", - table: "Basedata_ErpLocation"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_DocumentSetting_Code", - table: "Basedata_DocumentSetting"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Dock_Code", - table: "Basedata_Dock"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Dict_Code", - table: "Basedata_Dict"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_CustomerItem_CustomerCode_ItemCode", - table: "Basedata_CustomerItem"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_CustomerBom_CustomerId_ParentItemId_ChildItemId", - table: "Basedata_CustomerBom"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_CustomerAddress_Code_CustomerCode", - table: "Basedata_CustomerAddress"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Customer_Code", - table: "Basedata_Customer"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_CurrencyExchange_CurrencyId_BasicCurrencyId", - table: "Basedata_CurrencyExchange"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Currency_Code", - table: "Basedata_Currency"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Configuration_Key", - table: "Basedata_Configuration"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Category_Code", - table: "Basedata_Category"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Calendar_Module", - table: "Basedata_Calendar"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Bom_Product_Component", - table: "Basedata_Bom"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_AreaItem_AreaId_ItemId", - table: "Basedata_AreaItem"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_Area_Code", - table: "Basedata_Area"); - - migrationBuilder.DropIndex( - name: "IX_Basedata_AQL_SupplierCode_ItemCode_FloorQty", - table: "Basedata_AQL"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Basedata_ItemBasic"); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_WorkStation", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_WorkShop", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_WorkGroup", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Warehouse", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Uom", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_TransactionType", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Team", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_SupplierTime", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_SupplierItem", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Supplier", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_StrategyRule", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Strategy", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_StdCostPriceSheet", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Shift", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_SalePriceSheet", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Rule", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Route", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_PurchasePriceSheet", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Project", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_ProductionLine", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_ProdLineItem", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Param", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Machine", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_LocationGroup", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Location", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_ItemStoreRelation", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_ItemSafetyStock", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_ItemQuality", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_ItemPack", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_ItemGuideBook", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_ItemCategory", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_ItemBasic", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_InventoryRoute", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_InterfaceCalendar", - type: "nvarchar(450)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_ErpLocation", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_DocumentSetting", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Dock", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Dict", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_CustomerItem", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_CustomerBom", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_CustomerAddress", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Customer", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_CurrencyExchange", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Currency", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Configuration", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Category", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Calendar", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Bom", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_AreaItem", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_Area", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Company", - table: "Basedata_AQL", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.CreateTable( - name: "Basedata_Company", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - FullName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Logo = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - PrimaryProduct = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Company", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_WorkStation_Code_Company", - table: "Basedata_WorkStation", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_WorkShop_Code_Company", - table: "Basedata_WorkShop", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_WorkGroup_Code_Company", - table: "Basedata_WorkGroup", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Warehouse_Code_Company", - table: "Basedata_Warehouse", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Uom_Code_Company", - table: "Basedata_Uom", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_TransactionType_TransType_TransSubType_Company", - table: "Basedata_TransactionType", - columns: new[] { "TransType", "TransSubType", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Team_Code_Company", - table: "Basedata_Team", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SupplierTime_SupplierCode_Company_TimeSlot_Week", - table: "Basedata_SupplierTime", - columns: new[] { "SupplierCode", "Company", "TimeSlot", "Week" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SupplierItem_SupplierCode_ItemCode_Company", - table: "Basedata_SupplierItem", - columns: new[] { "SupplierCode", "ItemCode", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Supplier_Code_Company", - table: "Basedata_Supplier", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_StrategyRule_StrategyId_RuleId_Company", - table: "Basedata_StrategyRule", - columns: new[] { "StrategyId", "RuleId", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Strategy_Code_Company", - table: "Basedata_Strategy", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_StdCostPriceSheet_Code_Company_SupplierId", - table: "Basedata_StdCostPriceSheet", - columns: new[] { "Code", "Company", "SupplierId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Shift_Code_Company", - table: "Basedata_Shift", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SalePriceSheet_Code_Company_CustomerId", - table: "Basedata_SalePriceSheet", - columns: new[] { "Code", "Company", "CustomerId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Rule_Code_Company", - table: "Basedata_Rule", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Route_Code_Company", - table: "Basedata_Route", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_PurchasePriceSheet_Code_Company", - table: "Basedata_PurchasePriceSheet", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Project_Code_Company", - table: "Basedata_Project", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ProductionLine_Code_Company", - table: "Basedata_ProductionLine", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ProdLineItem_ProdLineCode_ItemCode_Company", - table: "Basedata_ProdLineItem", - columns: new[] { "ProdLineCode", "ItemCode", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Param_Code_Company", - table: "Basedata_Param", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Machine_Code_Company", - table: "Basedata_Machine", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_LocationGroup_Code_Company", - table: "Basedata_LocationGroup", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Location_Code_Company", - table: "Basedata_Location", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemStoreRelation_ItemCode_Company_StoreRelationType_StoreValue", - table: "Basedata_ItemStoreRelation", - columns: new[] { "ItemCode", "Company", "StoreRelationType", "StoreValue" }, - unique: true, - filter: "[StoreValue] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemSafetyStock_ItemCode_Company_WarehouseCode_StoreRelationType_StoreValue", - table: "Basedata_ItemSafetyStock", - columns: new[] { "ItemCode", "Company", "WarehouseCode", "StoreRelationType", "StoreValue" }, - unique: true, - filter: "[StoreValue] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemPack_Company_ItemCode_PackCode", - table: "Basedata_ItemPack", - columns: new[] { "Company", "ItemCode", "PackCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemGuideBook_ItemCode_Company", - table: "Basedata_ItemGuideBook", - columns: new[] { "ItemCode", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemCategory_Company_CategoryCode_ItemCode", - table: "Basedata_ItemCategory", - columns: new[] { "Company", "CategoryCode", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ItemBasic_Code_Company", - table: "Basedata_ItemBasic", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_InventoryRoute_Code_Company", - table: "Basedata_InventoryRoute", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_InterfaceCalendar_Code_Company", - table: "Basedata_InterfaceCalendar", - columns: new[] { "Code", "Company" }, - unique: true, - filter: "[Company] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ErpLocation_Code_Company", - table: "Basedata_ErpLocation", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_DocumentSetting_Company_Code", - table: "Basedata_DocumentSetting", - columns: new[] { "Company", "Code" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Dock_Code_Company", - table: "Basedata_Dock", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Dict_Code_Company", - table: "Basedata_Dict", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CustomerItem_Company_CustomerCode_ItemCode", - table: "Basedata_CustomerItem", - columns: new[] { "Company", "CustomerCode", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CustomerBom_Company_CustomerId_ParentItemId_ChildItemId", - table: "Basedata_CustomerBom", - columns: new[] { "Company", "CustomerId", "ParentItemId", "ChildItemId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CustomerAddress_Company_Code_CustomerCode", - table: "Basedata_CustomerAddress", - columns: new[] { "Company", "Code", "CustomerCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Customer_Code_Company", - table: "Basedata_Customer", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CurrencyExchange_Company_CurrencyId_BasicCurrencyId", - table: "Basedata_CurrencyExchange", - columns: new[] { "Company", "CurrencyId", "BasicCurrencyId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Currency_Code_Company", - table: "Basedata_Currency", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Configuration_Company", - table: "Basedata_Configuration", - column: "Company", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Category_Code_Company", - table: "Basedata_Category", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Calendar_Company", - table: "Basedata_Calendar", - column: "Company", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Bom_Product_Company_Component", - table: "Basedata_Bom", - columns: new[] { "Product", "Company", "Component" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_AreaItem_Company_AreaId_ItemId", - table: "Basedata_AreaItem", - columns: new[] { "Company", "AreaId", "ItemId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Area_Code_Company", - table: "Basedata_Area", - columns: new[] { "Code", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_AQL_SupplierCode_ItemCode_FloorQty_Company", - table: "Basedata_AQL", - columns: new[] { "SupplierCode", "ItemCode", "FloorQty", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Company_Code_Company", - table: "Basedata_Company", - columns: new[] { "Code", "Company" }, - unique: true); - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109015022_FlatUomQtyPackingInfoAndTimeRange.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109015022_FlatUomQtyPackingInfoAndTimeRange.Designer.cs deleted file mode 100644 index 294779884..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109015022_FlatUomQtyPackingInfoAndTimeRange.Designer.cs +++ /dev/null @@ -1,4078 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Basedata.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations -{ - [DbContext(typeof(BasedataDbContext))] - [Migration("20230109015022_FlatUomQtyPackingInfoAndTimeRange")] - partial class FlatUomQtyPackingInfoAndTimeRange - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AQL", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CeilingQty") - .HasColumnType("decimal(18,6)"); - - 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,6)"); - - 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,6)"); - - b.Property("SampleQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode", "FloorQty") - .IsUnique(); - - b.ToTable("Basedata_AQL", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Area", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaType") - .HasColumnType("int"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Area", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AreaItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Allowed") - .HasColumnType("bit"); - - b.Property("AreaId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("AreaId", "ItemId") - .IsUnique(); - - b.ToTable("Basedata_AreaItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ComponentQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ComponentUom") - .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("EndTime") - .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("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", "Component") - .IsUnique(); - - b.ToTable("Basedata_Bom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("EndTime") - .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("Module") - .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("Module") - .IsUnique() - .HasFilter("[Module] IS NOT NULL"); - - b.ToTable("Basedata_Calendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Category", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Category", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Configuration", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("Key") - .IsUnique(); - - b.ToTable("Basedata_Configuration", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Currency", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Currency", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CurrencyExchange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicCurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CurrencyId", "BasicCurrencyId") - .IsUnique(); - - b.ToTable("Basedata_CurrencyExchange", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Customer", b => - { - b.Property("Id") - .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("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("ShortName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Customer", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerAddress", b => - { - b.Property("Id") - .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("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("Code", "CustomerCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerAddress", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerBom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CustomerId", "ParentItemId", "ChildItemId") - .IsUnique(); - - b.ToTable("Basedata_CustomerBom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - 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("CustomerCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dict", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterId") - .HasColumnType("uniqueidentifier"); - - 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("Value") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterId"); - - b.ToTable("Basedata_DictItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DocumentSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberFormat") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberPrefix") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSeparator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSerialLength") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransactionType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_DocumentSetting", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_ErpLocation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InterfaceCalendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConvertToTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Month") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_InterfaceCalendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InventoryRoute", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_InventoryRoute", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemBasic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BasicUom") - .HasColumnType("nvarchar(max)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("CanOutsourcing") - .HasColumnType("bit"); - - b.Property("Category") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Color") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Eco") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Elevel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("IsRecycled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManageType") - .HasColumnType("int"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Validity") - .HasColumnType("int"); - - b.Property("ValidityUnit") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ItemBasic", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryCode") - .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("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("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("CategoryCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemCategory", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("PictureBlobName") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Step") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemGuideBook", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicUom") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PackCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "PackCode") - .IsUnique(); - - b.ToTable("Basedata_ItemPack", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemQuality", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectType") - .HasColumnType("int"); - - 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("Status") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "SupplierCode") - .IsUnique(); - - b.ToTable("Basedata_ItemQuality", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemSafetyStock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FeedLine") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("MaxStock") - .HasColumnType("decimal(18,6)"); - - b.Property("MinStock") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SafetyStock") - .HasColumnType("decimal(18,6)"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "WarehouseCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemSafetyStock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemStoreRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltUm") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AltUmQty") - .HasColumnType("decimal(18,6)"); - - 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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsFixed") - .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("MultiLoc") - .HasColumnType("int"); - - b.Property("PramaryUM") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UmQty") - .HasColumnType("decimal(18,6)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemStoreRelation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ColumnCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - 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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ErpLocationCode") - .IsRequired() - .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("LocationGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickOrder") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("ShelfCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Location", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OverflowLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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") - .IsUnique(); - - b.ToTable("Basedata_LocationGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStationId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Machine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Param", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasColumnType("nvarchar(max)"); - - 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("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Param", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProdLineItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProdLineCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ProdLineItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroupCode") - .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") - .HasColumnType("int"); - - b.Property("WorkshopCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ProductionLine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Project", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.PurchasePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_PurchasePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Route", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Route", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Rule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .IsRequired() - .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("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.Property("Value") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Rule", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SalePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("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", "CustomerId") - .IsUnique(); - - b.ToTable("Basedata_SalePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EndAtNextDay") - .HasColumnType("bit"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Shift", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StdCostPriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "SupplierId") - .IsUnique(); - - b.ToTable("Basedata_StdCostPriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Strategy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Strategy", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StrategyRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveTime") - .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("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StrategyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("StrategyId", "RuleId") - .IsUnique(); - - b.ToTable("Basedata_StrategyRule", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Supplier", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Bank") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("City") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - 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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Supplier", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("QtyPerPallet") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierSimpleName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_SupplierItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierTime", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - 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("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeSlot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Week") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "TimeSlot", "Week") - .IsUnique(); - - b.ToTable("Basedata_SupplierTime", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Team", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Members") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .IsUnique(); - - b.ToTable("Basedata_Team", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.TransactionType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoAgreeRequest") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandleRequest") - .HasColumnType("bit"); - - b.Property("AutoSubmitRequest") - .HasColumnType("bit"); - - 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") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("InLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OutInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OutLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("OutLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransSubType") - .HasColumnType("int"); - - b.Property("TransType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TransType", "TransSubType") - .IsUnique(); - - b.ToTable("Basedata_TransactionType", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Uom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Uom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Warehouse", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Warehouse", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_WorkGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkShop", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_WorkShop", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkStation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionLineCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .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") - .IsUnique(); - - b.ToTable("Basedata_WorkStation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.Dict", null) - .WithMany("Items") - .HasForeignKey("MasterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemGuideBookId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemGuideBookId"); - - b1.ToTable("Basedata_ItemGuideBook", "dbo"); - - b1.WithOwner() - .HasForeignKey("ItemGuideBookId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.LocationSwitch", "LocSwitch", b1 => - { - b1.Property("LocationId") - .HasColumnType("uniqueidentifier"); - - b1.Property("EnableBreakStore") - .HasColumnType("bit"); - - b1.Property("EnableKeepZero") - .HasColumnType("bit"); - - b1.Property("EnableMixItem") - .HasColumnType("bit"); - - b1.Property("EnableMixLot") - .HasColumnType("bit"); - - b1.Property("EnableMixStatus") - .HasColumnType("bit"); - - b1.Property("EnableNegative") - .HasColumnType("bit"); - - b1.Property("EnableOpportunityCount") - .HasColumnType("bit"); - - b1.Property("EnableOverPick") - .HasColumnType("bit"); - - b1.Property("EnablePick") - .HasColumnType("bit"); - - b1.Property("EnableReceive") - .HasColumnType("bit"); - - b1.Property("EnableReturnFromCustomer") - .HasColumnType("bit"); - - b1.Property("EnableReturnToSupplier") - .HasColumnType("bit"); - - b1.Property("EnableShip") - .HasColumnType("bit"); - - b1.Property("EnableSplitBox") - .HasColumnType("bit"); - - b1.Property("EnableSplitPallet") - .HasColumnType("bit"); - - b1.Property("EnableWholeStore") - .HasColumnType("bit"); - - b1.HasKey("LocationId"); - - b1.ToTable("Basedata_Location", "dbo"); - - b1.WithOwner() - .HasForeignKey("LocationId"); - }); - - b.Navigation("LocSwitch"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.LocationSwitch", "LocSwitch", b1 => - { - b1.Property("LocationGroupId") - .HasColumnType("uniqueidentifier"); - - b1.Property("EnableBreakStore") - .HasColumnType("bit"); - - b1.Property("EnableKeepZero") - .HasColumnType("bit"); - - b1.Property("EnableMixItem") - .HasColumnType("bit"); - - b1.Property("EnableMixLot") - .HasColumnType("bit"); - - b1.Property("EnableMixStatus") - .HasColumnType("bit"); - - b1.Property("EnableNegative") - .HasColumnType("bit"); - - b1.Property("EnableOpportunityCount") - .HasColumnType("bit"); - - b1.Property("EnableOverPick") - .HasColumnType("bit"); - - b1.Property("EnablePick") - .HasColumnType("bit"); - - b1.Property("EnableReceive") - .HasColumnType("bit"); - - b1.Property("EnableReturnFromCustomer") - .HasColumnType("bit"); - - b1.Property("EnableReturnToSupplier") - .HasColumnType("bit"); - - b1.Property("EnableShip") - .HasColumnType("bit"); - - b1.Property("EnableSplitBox") - .HasColumnType("bit"); - - b1.Property("EnableSplitPallet") - .HasColumnType("bit"); - - b1.Property("EnableWholeStore") - .HasColumnType("bit"); - - b1.HasKey("LocationGroupId"); - - b1.ToTable("Basedata_LocationGroup", "dbo"); - - b1.WithOwner() - .HasForeignKey("LocationGroupId"); - }); - - b.Navigation("LocSwitch"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Navigation("Items"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109015022_FlatUomQtyPackingInfoAndTimeRange.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109015022_FlatUomQtyPackingInfoAndTimeRange.cs deleted file mode 100644 index 228cff2b7..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109015022_FlatUomQtyPackingInfoAndTimeRange.cs +++ /dev/null @@ -1,909 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations; - -public partial class FlatUomQtyPackingInfoAndTimeRange : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Basedata_Calendar_Module", - table: "Basedata_Calendar"); - - migrationBuilder.DropColumn( - name: "SupplierPackQty_Qty", - table: "Basedata_SupplierItem"); - - migrationBuilder.DropColumn( - name: "ConversionRate", - table: "Basedata_ItemPack"); - - migrationBuilder.DropColumn( - name: "IsStdPack", - table: "Basedata_ItemPack"); - - migrationBuilder.DropColumn( - name: "PackQty_Uom", - table: "Basedata_ItemPack"); - - migrationBuilder.DropColumn( - name: "CustomerPackQty_Qty", - table: "Basedata_CustomerItem"); - - migrationBuilder.DropColumn( - name: "PerQty_Qty", - table: "Basedata_Bom"); - - migrationBuilder.EnsureSchema( - name: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkStation", - newName: "Basedata_WorkStation", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkShop", - newName: "Basedata_WorkShop", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkGroup", - newName: "Basedata_WorkGroup", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Warehouse", - newName: "Basedata_Warehouse", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Uom", - newName: "Basedata_Uom", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_TransactionType", - newName: "Basedata_TransactionType", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Team", - newName: "Basedata_Team", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_SupplierTime", - newName: "Basedata_SupplierTime", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_SupplierItem", - newName: "Basedata_SupplierItem", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Supplier", - newName: "Basedata_Supplier", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_StrategyRule", - newName: "Basedata_StrategyRule", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Strategy", - newName: "Basedata_Strategy", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_StdCostPriceSheet", - newName: "Basedata_StdCostPriceSheet", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Shift", - newName: "Basedata_Shift", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_SalePriceSheet", - newName: "Basedata_SalePriceSheet", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Rule", - newName: "Basedata_Rule", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Route", - newName: "Basedata_Route", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_PurchasePriceSheet", - newName: "Basedata_PurchasePriceSheet", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Project", - newName: "Basedata_Project", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ProductionLine", - newName: "Basedata_ProductionLine", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ProdLineItem", - newName: "Basedata_ProdLineItem", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Param", - newName: "Basedata_Param", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Machine", - newName: "Basedata_Machine", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_LocationGroup", - newName: "Basedata_LocationGroup", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Location", - newName: "Basedata_Location", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemStoreRelation", - newName: "Basedata_ItemStoreRelation", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemSafetyStock", - newName: "Basedata_ItemSafetyStock", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemQuality", - newName: "Basedata_ItemQuality", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemPack", - newName: "Basedata_ItemPack", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemGuideBook", - newName: "Basedata_ItemGuideBook", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemCategory", - newName: "Basedata_ItemCategory", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemBasic", - newName: "Basedata_ItemBasic", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_InventoryRoute", - newName: "Basedata_InventoryRoute", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_InterfaceCalendar", - newName: "Basedata_InterfaceCalendar", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ErpLocation", - newName: "Basedata_ErpLocation", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_DocumentSetting", - newName: "Basedata_DocumentSetting", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Dock", - newName: "Basedata_Dock", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_DictItem", - newName: "Basedata_DictItem", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Dict", - newName: "Basedata_Dict", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_CustomerItem", - newName: "Basedata_CustomerItem", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_CustomerBom", - newName: "Basedata_CustomerBom", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_CustomerAddress", - newName: "Basedata_CustomerAddress", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Customer", - newName: "Basedata_Customer", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_CurrencyExchange", - newName: "Basedata_CurrencyExchange", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Currency", - newName: "Basedata_Currency", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Configuration", - newName: "Basedata_Configuration", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Category", - newName: "Basedata_Category", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Calendar", - newName: "Basedata_Calendar", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Bom", - newName: "Basedata_Bom", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_AreaItem", - newName: "Basedata_AreaItem", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Area", - newName: "Basedata_Area", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_AQL", - newName: "Basedata_AQL", - newSchema: "dbo"); - - migrationBuilder.RenameColumn( - name: "SupplierPackQty_Uom", - schema: "dbo", - table: "Basedata_SupplierItem", - newName: "SupplierPackUom"); - - migrationBuilder.RenameColumn( - name: "TimeRange_EndTime", - schema: "dbo", - table: "Basedata_Shift", - newName: "EndTime"); - - migrationBuilder.RenameColumn( - name: "TimeRange_BeginTime", - schema: "dbo", - table: "Basedata_Shift", - newName: "BeginTime"); - - migrationBuilder.RenameColumn( - name: "TimeRange_EndTime", - schema: "dbo", - table: "Basedata_Project", - newName: "EndTime"); - - migrationBuilder.RenameColumn( - name: "TimeRange_BeginTime", - schema: "dbo", - table: "Basedata_Project", - newName: "BeginTime"); - - migrationBuilder.RenameColumn( - name: "PackQty_Qty", - schema: "dbo", - table: "Basedata_ItemPack", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "StdPackCode", - schema: "dbo", - table: "Basedata_ItemPack", - newName: "BasicUom"); - - migrationBuilder.RenameColumn( - name: "TimeRange_EndTime", - schema: "dbo", - table: "Basedata_CustomerItem", - newName: "EndTime"); - - migrationBuilder.RenameColumn( - name: "TimeRange_BeginTime", - schema: "dbo", - table: "Basedata_CustomerItem", - newName: "BeginTime"); - - migrationBuilder.RenameColumn( - name: "CustomerPackQty_Uom", - schema: "dbo", - table: "Basedata_CustomerItem", - newName: "CustomerPackUom"); - - migrationBuilder.RenameColumn( - name: "TimeRange_EndTime", - schema: "dbo", - table: "Basedata_Calendar", - newName: "EndTime"); - - migrationBuilder.RenameColumn( - name: "TimeRange_BeginTime", - schema: "dbo", - table: "Basedata_Calendar", - newName: "BeginTime"); - - migrationBuilder.RenameColumn( - name: "TimeRange_EndTime", - schema: "dbo", - table: "Basedata_Bom", - newName: "EndTime"); - - migrationBuilder.RenameColumn( - name: "TimeRange_BeginTime", - schema: "dbo", - table: "Basedata_Bom", - newName: "BeginTime"); - - migrationBuilder.RenameColumn( - name: "PerQty_Uom", - schema: "dbo", - table: "Basedata_Bom", - newName: "ComponentUom"); - - migrationBuilder.AddColumn( - name: "SupplierPackQty", - schema: "dbo", - table: "Basedata_SupplierItem", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - schema: "dbo", - table: "Basedata_ItemPack", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPackQty", - schema: "dbo", - table: "Basedata_CustomerItem", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Module", - schema: "dbo", - table: "Basedata_Calendar", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "EndTime", - schema: "dbo", - table: "Basedata_Calendar", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "BeginTime", - schema: "dbo", - table: "Basedata_Calendar", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "ComponentQty", - schema: "dbo", - table: "Basedata_Bom", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Calendar_Module", - schema: "dbo", - table: "Basedata_Calendar", - column: "Module", - unique: true, - filter: "[Module] IS NOT NULL"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Basedata_Calendar_Module", - schema: "dbo", - table: "Basedata_Calendar"); - - migrationBuilder.DropColumn( - name: "SupplierPackQty", - schema: "dbo", - table: "Basedata_SupplierItem"); - - migrationBuilder.DropColumn( - name: "CustomerPackQty", - schema: "dbo", - table: "Basedata_CustomerItem"); - - migrationBuilder.DropColumn( - name: "ComponentQty", - schema: "dbo", - table: "Basedata_Bom"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkStation", - schema: "dbo", - newName: "Basedata_WorkStation"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkShop", - schema: "dbo", - newName: "Basedata_WorkShop"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkGroup", - schema: "dbo", - newName: "Basedata_WorkGroup"); - - migrationBuilder.RenameTable( - name: "Basedata_Warehouse", - schema: "dbo", - newName: "Basedata_Warehouse"); - - migrationBuilder.RenameTable( - name: "Basedata_Uom", - schema: "dbo", - newName: "Basedata_Uom"); - - migrationBuilder.RenameTable( - name: "Basedata_TransactionType", - schema: "dbo", - newName: "Basedata_TransactionType"); - - migrationBuilder.RenameTable( - name: "Basedata_Team", - schema: "dbo", - newName: "Basedata_Team"); - - migrationBuilder.RenameTable( - name: "Basedata_SupplierTime", - schema: "dbo", - newName: "Basedata_SupplierTime"); - - migrationBuilder.RenameTable( - name: "Basedata_SupplierItem", - schema: "dbo", - newName: "Basedata_SupplierItem"); - - migrationBuilder.RenameTable( - name: "Basedata_Supplier", - schema: "dbo", - newName: "Basedata_Supplier"); - - migrationBuilder.RenameTable( - name: "Basedata_StrategyRule", - schema: "dbo", - newName: "Basedata_StrategyRule"); - - migrationBuilder.RenameTable( - name: "Basedata_Strategy", - schema: "dbo", - newName: "Basedata_Strategy"); - - migrationBuilder.RenameTable( - name: "Basedata_StdCostPriceSheet", - schema: "dbo", - newName: "Basedata_StdCostPriceSheet"); - - migrationBuilder.RenameTable( - name: "Basedata_Shift", - schema: "dbo", - newName: "Basedata_Shift"); - - migrationBuilder.RenameTable( - name: "Basedata_SalePriceSheet", - schema: "dbo", - newName: "Basedata_SalePriceSheet"); - - migrationBuilder.RenameTable( - name: "Basedata_Rule", - schema: "dbo", - newName: "Basedata_Rule"); - - migrationBuilder.RenameTable( - name: "Basedata_Route", - schema: "dbo", - newName: "Basedata_Route"); - - migrationBuilder.RenameTable( - name: "Basedata_PurchasePriceSheet", - schema: "dbo", - newName: "Basedata_PurchasePriceSheet"); - - migrationBuilder.RenameTable( - name: "Basedata_Project", - schema: "dbo", - newName: "Basedata_Project"); - - migrationBuilder.RenameTable( - name: "Basedata_ProductionLine", - schema: "dbo", - newName: "Basedata_ProductionLine"); - - migrationBuilder.RenameTable( - name: "Basedata_ProdLineItem", - schema: "dbo", - newName: "Basedata_ProdLineItem"); - - migrationBuilder.RenameTable( - name: "Basedata_Param", - schema: "dbo", - newName: "Basedata_Param"); - - migrationBuilder.RenameTable( - name: "Basedata_Machine", - schema: "dbo", - newName: "Basedata_Machine"); - - migrationBuilder.RenameTable( - name: "Basedata_LocationGroup", - schema: "dbo", - newName: "Basedata_LocationGroup"); - - migrationBuilder.RenameTable( - name: "Basedata_Location", - schema: "dbo", - newName: "Basedata_Location"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemStoreRelation", - schema: "dbo", - newName: "Basedata_ItemStoreRelation"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemSafetyStock", - schema: "dbo", - newName: "Basedata_ItemSafetyStock"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemQuality", - schema: "dbo", - newName: "Basedata_ItemQuality"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemPack", - schema: "dbo", - newName: "Basedata_ItemPack"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemGuideBook", - schema: "dbo", - newName: "Basedata_ItemGuideBook"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemCategory", - schema: "dbo", - newName: "Basedata_ItemCategory"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemBasic", - schema: "dbo", - newName: "Basedata_ItemBasic"); - - migrationBuilder.RenameTable( - name: "Basedata_InventoryRoute", - schema: "dbo", - newName: "Basedata_InventoryRoute"); - - migrationBuilder.RenameTable( - name: "Basedata_InterfaceCalendar", - schema: "dbo", - newName: "Basedata_InterfaceCalendar"); - - migrationBuilder.RenameTable( - name: "Basedata_ErpLocation", - schema: "dbo", - newName: "Basedata_ErpLocation"); - - migrationBuilder.RenameTable( - name: "Basedata_DocumentSetting", - schema: "dbo", - newName: "Basedata_DocumentSetting"); - - migrationBuilder.RenameTable( - name: "Basedata_Dock", - schema: "dbo", - newName: "Basedata_Dock"); - - migrationBuilder.RenameTable( - name: "Basedata_DictItem", - schema: "dbo", - newName: "Basedata_DictItem"); - - migrationBuilder.RenameTable( - name: "Basedata_Dict", - schema: "dbo", - newName: "Basedata_Dict"); - - migrationBuilder.RenameTable( - name: "Basedata_CustomerItem", - schema: "dbo", - newName: "Basedata_CustomerItem"); - - migrationBuilder.RenameTable( - name: "Basedata_CustomerBom", - schema: "dbo", - newName: "Basedata_CustomerBom"); - - migrationBuilder.RenameTable( - name: "Basedata_CustomerAddress", - schema: "dbo", - newName: "Basedata_CustomerAddress"); - - migrationBuilder.RenameTable( - name: "Basedata_Customer", - schema: "dbo", - newName: "Basedata_Customer"); - - migrationBuilder.RenameTable( - name: "Basedata_CurrencyExchange", - schema: "dbo", - newName: "Basedata_CurrencyExchange"); - - migrationBuilder.RenameTable( - name: "Basedata_Currency", - schema: "dbo", - newName: "Basedata_Currency"); - - migrationBuilder.RenameTable( - name: "Basedata_Configuration", - schema: "dbo", - newName: "Basedata_Configuration"); - - migrationBuilder.RenameTable( - name: "Basedata_Category", - schema: "dbo", - newName: "Basedata_Category"); - - migrationBuilder.RenameTable( - name: "Basedata_Calendar", - schema: "dbo", - newName: "Basedata_Calendar"); - - migrationBuilder.RenameTable( - name: "Basedata_Bom", - schema: "dbo", - newName: "Basedata_Bom"); - - migrationBuilder.RenameTable( - name: "Basedata_AreaItem", - schema: "dbo", - newName: "Basedata_AreaItem"); - - migrationBuilder.RenameTable( - name: "Basedata_Area", - schema: "dbo", - newName: "Basedata_Area"); - - migrationBuilder.RenameTable( - name: "Basedata_AQL", - schema: "dbo", - newName: "Basedata_AQL"); - - migrationBuilder.RenameColumn( - name: "SupplierPackUom", - table: "Basedata_SupplierItem", - newName: "SupplierPackQty_Uom"); - - migrationBuilder.RenameColumn( - name: "EndTime", - table: "Basedata_Shift", - newName: "TimeRange_EndTime"); - - migrationBuilder.RenameColumn( - name: "BeginTime", - table: "Basedata_Shift", - newName: "TimeRange_BeginTime"); - - migrationBuilder.RenameColumn( - name: "EndTime", - table: "Basedata_Project", - newName: "TimeRange_EndTime"); - - migrationBuilder.RenameColumn( - name: "BeginTime", - table: "Basedata_Project", - newName: "TimeRange_BeginTime"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Basedata_ItemPack", - newName: "PackQty_Qty"); - - migrationBuilder.RenameColumn( - name: "BasicUom", - table: "Basedata_ItemPack", - newName: "StdPackCode"); - - migrationBuilder.RenameColumn( - name: "EndTime", - table: "Basedata_CustomerItem", - newName: "TimeRange_EndTime"); - - migrationBuilder.RenameColumn( - name: "BeginTime", - table: "Basedata_CustomerItem", - newName: "TimeRange_BeginTime"); - - migrationBuilder.RenameColumn( - name: "CustomerPackUom", - table: "Basedata_CustomerItem", - newName: "CustomerPackQty_Uom"); - - migrationBuilder.RenameColumn( - name: "EndTime", - table: "Basedata_Calendar", - newName: "TimeRange_EndTime"); - - migrationBuilder.RenameColumn( - name: "BeginTime", - table: "Basedata_Calendar", - newName: "TimeRange_BeginTime"); - - migrationBuilder.RenameColumn( - name: "EndTime", - table: "Basedata_Bom", - newName: "TimeRange_EndTime"); - - migrationBuilder.RenameColumn( - name: "BeginTime", - table: "Basedata_Bom", - newName: "TimeRange_BeginTime"); - - migrationBuilder.RenameColumn( - name: "ComponentUom", - table: "Basedata_Bom", - newName: "PerQty_Uom"); - - migrationBuilder.AddColumn( - name: "SupplierPackQty_Qty", - table: "Basedata_SupplierItem", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "PackQty_Qty", - table: "Basedata_ItemPack", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "ConversionRate", - table: "Basedata_ItemPack", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "IsStdPack", - table: "Basedata_ItemPack", - type: "bit", - maxLength: 64, - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "PackQty_Uom", - table: "Basedata_ItemPack", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPackQty_Qty", - table: "Basedata_CustomerItem", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Module", - table: "Basedata_Calendar", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TimeRange_EndTime", - table: "Basedata_Calendar", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TimeRange_BeginTime", - table: "Basedata_Calendar", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "PerQty_Qty", - table: "Basedata_Bom", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Calendar_Module", - table: "Basedata_Calendar", - column: "Module", - unique: true); - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109071524_FlatLocationSwitch.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109071524_FlatLocationSwitch.Designer.cs deleted file mode 100644 index bddcff446..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109071524_FlatLocationSwitch.Designer.cs +++ /dev/null @@ -1,4106 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Basedata.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations -{ - [DbContext(typeof(BasedataDbContext))] - [Migration("20230109071524_FlatLocationSwitch")] - partial class FlatLocationSwitch - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AQL", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CeilingQty") - .HasColumnType("decimal(18,6)"); - - 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,6)"); - - 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,6)"); - - b.Property("SampleQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode", "FloorQty") - .IsUnique(); - - b.ToTable("Basedata_AQL", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Area", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaType") - .HasColumnType("int"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Area", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AreaItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Allowed") - .HasColumnType("bit"); - - b.Property("AreaId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("AreaId", "ItemId") - .IsUnique(); - - b.ToTable("Basedata_AreaItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ComponentQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ComponentUom") - .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("EndTime") - .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("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", "Component") - .IsUnique(); - - b.ToTable("Basedata_Bom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("EndTime") - .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("Module") - .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("Module") - .IsUnique() - .HasFilter("[Module] IS NOT NULL"); - - b.ToTable("Basedata_Calendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Category", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Category", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Configuration", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("Key") - .IsUnique(); - - b.ToTable("Basedata_Configuration", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Currency", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Currency", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CurrencyExchange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicCurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CurrencyId", "BasicCurrencyId") - .IsUnique(); - - b.ToTable("Basedata_CurrencyExchange", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Customer", b => - { - b.Property("Id") - .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("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("ShortName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Customer", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerAddress", b => - { - b.Property("Id") - .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("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("Code", "CustomerCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerAddress", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerBom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CustomerId", "ParentItemId", "ChildItemId") - .IsUnique(); - - b.ToTable("Basedata_CustomerBom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - 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("CustomerCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dict", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterId") - .HasColumnType("uniqueidentifier"); - - 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("Value") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterId"); - - b.ToTable("Basedata_DictItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DocumentSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberFormat") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberPrefix") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSeparator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSerialLength") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransactionType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_DocumentSetting", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_ErpLocation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InterfaceCalendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConvertToTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Month") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_InterfaceCalendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InventoryRoute", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_InventoryRoute", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemBasic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BasicUom") - .HasColumnType("nvarchar(max)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("CanOutsourcing") - .HasColumnType("bit"); - - b.Property("Category") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Color") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Eco") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Elevel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("IsRecycled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManageType") - .HasColumnType("int"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Validity") - .HasColumnType("int"); - - b.Property("ValidityUnit") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ItemBasic", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryCode") - .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("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("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("CategoryCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemCategory", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("PictureBlobName") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Step") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemGuideBook", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicUom") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PackCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "PackCode") - .IsUnique(); - - b.ToTable("Basedata_ItemPack", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemQuality", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectType") - .HasColumnType("int"); - - 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("Status") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "SupplierCode") - .IsUnique(); - - b.ToTable("Basedata_ItemQuality", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemSafetyStock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FeedLine") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("MaxStock") - .HasColumnType("decimal(18,6)"); - - b.Property("MinStock") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SafetyStock") - .HasColumnType("decimal(18,6)"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "WarehouseCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemSafetyStock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemStoreRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltUm") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AltUmQty") - .HasColumnType("decimal(18,6)"); - - 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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsFixed") - .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("MultiLoc") - .HasColumnType("int"); - - b.Property("PramaryUM") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UmQty") - .HasColumnType("decimal(18,6)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemStoreRelation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ColumnCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - 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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("EnableBreakStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableKeepZero") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixItem") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixLot") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixStatus") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableNegative") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOpportunityCount") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOverPick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnablePick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReceive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnFromCustomer") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnToSupplier") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableShip") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitBox") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitPallet") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableWholeStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("ErpLocationCode") - .IsRequired() - .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("LocationGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickOrder") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("ShelfCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Location", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("EnableBreakStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableKeepZero") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixItem") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixLot") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixStatus") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableNegative") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOpportunityCount") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOverPick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnablePick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReceive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnFromCustomer") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnToSupplier") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableShip") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitBox") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitPallet") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableWholeStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OverflowLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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") - .IsUnique(); - - b.ToTable("Basedata_LocationGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStationId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Machine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Param", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasColumnType("nvarchar(max)"); - - 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("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Param", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProdLineItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProdLineCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ProdLineItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroupCode") - .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") - .HasColumnType("int"); - - b.Property("WorkshopCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ProductionLine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Project", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.PurchasePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_PurchasePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Route", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Route", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Rule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .IsRequired() - .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("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.Property("Value") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Rule", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SalePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("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", "CustomerId") - .IsUnique(); - - b.ToTable("Basedata_SalePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EndAtNextDay") - .HasColumnType("bit"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Shift", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StdCostPriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "SupplierId") - .IsUnique(); - - b.ToTable("Basedata_StdCostPriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Strategy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Strategy", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StrategyRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveTime") - .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("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StrategyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("StrategyId", "RuleId") - .IsUnique(); - - b.ToTable("Basedata_StrategyRule", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Supplier", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Bank") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("City") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - 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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Supplier", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("QtyPerPallet") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierSimpleName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_SupplierItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierTime", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - 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("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeSlot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Week") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "TimeSlot", "Week") - .IsUnique(); - - b.ToTable("Basedata_SupplierTime", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Team", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Members") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .IsUnique(); - - b.ToTable("Basedata_Team", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.TransactionType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoAgreeRequest") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandleRequest") - .HasColumnType("bit"); - - b.Property("AutoSubmitRequest") - .HasColumnType("bit"); - - 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") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("InLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OutInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OutLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("OutLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransSubType") - .HasColumnType("int"); - - b.Property("TransType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TransType", "TransSubType") - .IsUnique(); - - b.ToTable("Basedata_TransactionType", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Uom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Uom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Warehouse", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Warehouse", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_WorkGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkShop", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_WorkShop", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkStation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionLineCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .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") - .IsUnique(); - - b.ToTable("Basedata_WorkStation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.Dict", null) - .WithMany("Items") - .HasForeignKey("MasterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemGuideBookId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemGuideBookId"); - - b1.ToTable("Basedata_ItemGuideBook", "dbo"); - - b1.WithOwner() - .HasForeignKey("ItemGuideBookId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Navigation("Items"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109071524_FlatLocationSwitch.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109071524_FlatLocationSwitch.cs deleted file mode 100644 index 0f45aff88..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230109071524_FlatLocationSwitch.cs +++ /dev/null @@ -1,1070 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations; - -public partial class FlatLocationSwitch : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableWholeStore", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableWholeStore"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableSplitPallet", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableSplitPallet"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableSplitBox", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableSplitBox"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableShip", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableShip"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableReturnToSupplier", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableReturnToSupplier"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableReturnFromCustomer", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableReturnFromCustomer"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableReceive", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableReceive"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnablePick", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnablePick"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableOverPick", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableOverPick"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableOpportunityCount", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableOpportunityCount"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableNegative", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableNegative"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableMixStatus", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableMixStatus"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableMixLot", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableMixLot"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableMixItem", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableMixItem"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableKeepZero", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableKeepZero"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableBreakStore", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "EnableBreakStore"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableWholeStore", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableWholeStore"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableSplitPallet", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableSplitPallet"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableSplitBox", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableSplitBox"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableShip", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableShip"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableReturnToSupplier", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableReturnToSupplier"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableReturnFromCustomer", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableReturnFromCustomer"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableReceive", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableReceive"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnablePick", - schema: "dbo", - table: "Basedata_Location", - newName: "EnablePick"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableOverPick", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableOverPick"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableOpportunityCount", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableOpportunityCount"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableNegative", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableNegative"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableMixStatus", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableMixStatus"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableMixLot", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableMixLot"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableMixItem", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableMixItem"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableKeepZero", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableKeepZero"); - - migrationBuilder.RenameColumn( - name: "LocSwitch_EnableBreakStore", - schema: "dbo", - table: "Basedata_Location", - newName: "EnableBreakStore"); - - migrationBuilder.AlterColumn( - name: "EnableWholeStore", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableSplitPallet", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableSplitBox", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableShip", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableReturnToSupplier", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableReturnFromCustomer", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableReceive", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnablePick", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableOverPick", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableOpportunityCount", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableNegative", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableMixStatus", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableMixLot", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableMixItem", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableKeepZero", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableBreakStore", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableWholeStore", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableSplitPallet", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableSplitBox", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableShip", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableReturnToSupplier", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableReturnFromCustomer", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableReceive", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnablePick", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableOverPick", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableOpportunityCount", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableNegative", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableMixStatus", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableMixLot", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableMixItem", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableKeepZero", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EnableBreakStore", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: false, - defaultValue: true, - oldClrType: typeof(bool), - oldType: "bit", - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "EnableWholeStore", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableWholeStore"); - - migrationBuilder.RenameColumn( - name: "EnableSplitPallet", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableSplitPallet"); - - migrationBuilder.RenameColumn( - name: "EnableSplitBox", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableSplitBox"); - - migrationBuilder.RenameColumn( - name: "EnableShip", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableShip"); - - migrationBuilder.RenameColumn( - name: "EnableReturnToSupplier", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableReturnToSupplier"); - - migrationBuilder.RenameColumn( - name: "EnableReturnFromCustomer", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableReturnFromCustomer"); - - migrationBuilder.RenameColumn( - name: "EnableReceive", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableReceive"); - - migrationBuilder.RenameColumn( - name: "EnablePick", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnablePick"); - - migrationBuilder.RenameColumn( - name: "EnableOverPick", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableOverPick"); - - migrationBuilder.RenameColumn( - name: "EnableOpportunityCount", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableOpportunityCount"); - - migrationBuilder.RenameColumn( - name: "EnableNegative", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableNegative"); - - migrationBuilder.RenameColumn( - name: "EnableMixStatus", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableMixStatus"); - - migrationBuilder.RenameColumn( - name: "EnableMixLot", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableMixLot"); - - migrationBuilder.RenameColumn( - name: "EnableMixItem", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableMixItem"); - - migrationBuilder.RenameColumn( - name: "EnableKeepZero", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableKeepZero"); - - migrationBuilder.RenameColumn( - name: "EnableBreakStore", - schema: "dbo", - table: "Basedata_LocationGroup", - newName: "LocSwitch_EnableBreakStore"); - - migrationBuilder.RenameColumn( - name: "EnableWholeStore", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableWholeStore"); - - migrationBuilder.RenameColumn( - name: "EnableSplitPallet", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableSplitPallet"); - - migrationBuilder.RenameColumn( - name: "EnableSplitBox", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableSplitBox"); - - migrationBuilder.RenameColumn( - name: "EnableShip", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableShip"); - - migrationBuilder.RenameColumn( - name: "EnableReturnToSupplier", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableReturnToSupplier"); - - migrationBuilder.RenameColumn( - name: "EnableReturnFromCustomer", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableReturnFromCustomer"); - - migrationBuilder.RenameColumn( - name: "EnableReceive", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableReceive"); - - migrationBuilder.RenameColumn( - name: "EnablePick", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnablePick"); - - migrationBuilder.RenameColumn( - name: "EnableOverPick", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableOverPick"); - - migrationBuilder.RenameColumn( - name: "EnableOpportunityCount", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableOpportunityCount"); - - migrationBuilder.RenameColumn( - name: "EnableNegative", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableNegative"); - - migrationBuilder.RenameColumn( - name: "EnableMixStatus", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableMixStatus"); - - migrationBuilder.RenameColumn( - name: "EnableMixLot", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableMixLot"); - - migrationBuilder.RenameColumn( - name: "EnableMixItem", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableMixItem"); - - migrationBuilder.RenameColumn( - name: "EnableKeepZero", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableKeepZero"); - - migrationBuilder.RenameColumn( - name: "EnableBreakStore", - schema: "dbo", - table: "Basedata_Location", - newName: "LocSwitch_EnableBreakStore"); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableWholeStore", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableSplitPallet", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableSplitBox", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableShip", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableReturnToSupplier", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableReturnFromCustomer", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableReceive", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnablePick", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableOverPick", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableOpportunityCount", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableNegative", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableMixStatus", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableMixLot", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableMixItem", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableKeepZero", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableBreakStore", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableWholeStore", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableSplitPallet", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableSplitBox", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableShip", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableReturnToSupplier", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableReturnFromCustomer", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableReceive", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnablePick", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableOverPick", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableOpportunityCount", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableNegative", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableMixStatus", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableMixLot", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableMixItem", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableKeepZero", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - - migrationBuilder.AlterColumn( - name: "LocSwitch_EnableBreakStore", - schema: "dbo", - table: "Basedata_Location", - type: "bit", - nullable: true, - oldClrType: typeof(bool), - oldType: "bit", - oldDefaultValue: true); - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230110062547_FlatLocation.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230110062547_FlatLocation.Designer.cs deleted file mode 100644 index fb132a2bd..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230110062547_FlatLocation.Designer.cs +++ /dev/null @@ -1,4106 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Basedata.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations -{ - [DbContext(typeof(BasedataDbContext))] - [Migration("20230110062547_FlatLocation")] - partial class FlatLocation - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AQL", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CeilingQty") - .HasColumnType("decimal(18,6)"); - - 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,6)"); - - 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,6)"); - - b.Property("SampleQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode", "FloorQty") - .IsUnique(); - - b.ToTable("Basedata_AQL", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Area", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaType") - .HasColumnType("int"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Area", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AreaItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Allowed") - .HasColumnType("bit"); - - b.Property("AreaId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("AreaId", "ItemId") - .IsUnique(); - - b.ToTable("Basedata_AreaItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ComponentQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ComponentUom") - .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("EndTime") - .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("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", "Component") - .IsUnique(); - - b.ToTable("Basedata_Bom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("EndTime") - .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("Module") - .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("Module") - .IsUnique() - .HasFilter("[Module] IS NOT NULL"); - - b.ToTable("Basedata_Calendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Category", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Category", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Configuration", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("Key") - .IsUnique(); - - b.ToTable("Basedata_Configuration", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Currency", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Currency", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CurrencyExchange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicCurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CurrencyId", "BasicCurrencyId") - .IsUnique(); - - b.ToTable("Basedata_CurrencyExchange", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Customer", b => - { - b.Property("Id") - .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("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("ShortName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Customer", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerAddress", b => - { - b.Property("Id") - .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("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("Code", "CustomerCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerAddress", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerBom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ChildItemId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CustomerId", "ParentItemId", "ChildItemId") - .IsUnique(); - - b.ToTable("Basedata_CustomerBom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - 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("CustomerCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dict", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterId") - .HasColumnType("uniqueidentifier"); - - 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("Value") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterId"); - - b.ToTable("Basedata_DictItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DocumentSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberFormat") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberPrefix") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSeparator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSerialLength") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransactionType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_DocumentSetting", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_ErpLocation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InterfaceCalendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConvertToTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Month") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_InterfaceCalendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InventoryRoute", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_InventoryRoute", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemBasic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BasicUom") - .HasColumnType("nvarchar(max)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("CanOutsourcing") - .HasColumnType("bit"); - - b.Property("Category") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Color") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Eco") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Elevel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("IsRecycled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManageType") - .HasColumnType("int"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Validity") - .HasColumnType("int"); - - b.Property("ValidityUnit") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ItemBasic", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryCode") - .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("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("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("CategoryCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemCategory", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("PictureBlobName") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Step") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemGuideBook", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicUom") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PackCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "PackCode") - .IsUnique(); - - b.ToTable("Basedata_ItemPack", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemQuality", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectType") - .HasColumnType("int"); - - 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("Status") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "SupplierCode") - .IsUnique(); - - b.ToTable("Basedata_ItemQuality", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemSafetyStock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FeedLine") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("MaxStock") - .HasColumnType("decimal(18,6)"); - - b.Property("MinStock") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SafetyStock") - .HasColumnType("decimal(18,6)"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "WarehouseCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemSafetyStock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemStoreRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltUm") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AltUmQty") - .HasColumnType("decimal(18,6)"); - - 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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsFixed") - .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("MultiLoc") - .HasColumnType("int"); - - b.Property("PramaryUM") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UmQty") - .HasColumnType("decimal(18,6)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemStoreRelation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ColumnCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - 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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("EnableBreakStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableKeepZero") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixItem") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixLot") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixStatus") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableNegative") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOpportunityCount") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOverPick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnablePick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReceive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnFromCustomer") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnToSupplier") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableShip") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitBox") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitPallet") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableWholeStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("ErpLocationCode") - .IsRequired() - .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("LocationGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickOrder") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("ShelfCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Location", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("EnableBreakStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableKeepZero") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixItem") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixLot") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixStatus") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableNegative") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOpportunityCount") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOverPick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnablePick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReceive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnFromCustomer") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnToSupplier") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableShip") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitBox") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitPallet") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableWholeStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OverflowLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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") - .IsUnique(); - - b.ToTable("Basedata_LocationGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStationId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Machine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Param", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasColumnType("nvarchar(max)"); - - 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("Value") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Param", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProdLineItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProdLineCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ProdLineItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroupCode") - .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") - .HasColumnType("int"); - - b.Property("WorkshopCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ProductionLine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Project", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.PurchasePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_PurchasePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Route", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Route", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Rule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .IsRequired() - .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("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.Property("Value") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Rule", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SalePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("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", "CustomerId") - .IsUnique(); - - b.ToTable("Basedata_SalePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EndAtNextDay") - .HasColumnType("bit"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Shift", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StdCostPriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "SupplierId") - .IsUnique(); - - b.ToTable("Basedata_StdCostPriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Strategy", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Strategy", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StrategyRule", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveTime") - .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("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RuleId") - .HasColumnType("uniqueidentifier"); - - b.Property("Seq") - .HasColumnType("int"); - - b.Property("StrategyId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("StrategyId", "RuleId") - .IsUnique(); - - b.ToTable("Basedata_StrategyRule", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Supplier", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Bank") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("City") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - 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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Supplier", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("QtyPerPallet") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierSimpleName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_SupplierItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierTime", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - 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("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeSlot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Week") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "TimeSlot", "Week") - .IsUnique(); - - b.ToTable("Basedata_SupplierTime", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Team", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Members") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .IsUnique(); - - b.ToTable("Basedata_Team", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.TransactionType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoAgreeRequest") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandleRequest") - .HasColumnType("bit"); - - b.Property("AutoSubmitRequest") - .HasColumnType("bit"); - - 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") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("InLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OutInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OutLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("OutLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransSubType") - .HasColumnType("int"); - - b.Property("TransType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TransType", "TransSubType") - .IsUnique(); - - b.ToTable("Basedata_TransactionType", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Uom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Uom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Warehouse", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Warehouse", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_WorkGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkShop", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_WorkShop", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkStation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionLineCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .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") - .IsUnique(); - - b.ToTable("Basedata_WorkStation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.Dict", null) - .WithMany("Items") - .HasForeignKey("MasterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemGuideBookId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemGuideBookId"); - - b1.ToTable("Basedata_ItemGuideBook", "dbo"); - - b1.WithOwner() - .HasForeignKey("ItemGuideBookId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Navigation("Items"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230110062547_FlatLocation.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230110062547_FlatLocation.cs deleted file mode 100644 index e40751be1..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230110062547_FlatLocation.cs +++ /dev/null @@ -1,62 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations; - -public partial class FlatLocation : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "RawLocation", - schema: "dbo", - table: "Basedata_WorkStation", - newName: "RawLocationCode"); - - migrationBuilder.RenameColumn( - name: "ProductLocation", - schema: "dbo", - table: "Basedata_WorkStation", - newName: "ProductLocationCode"); - - migrationBuilder.RenameColumn( - name: "RawLocation", - schema: "dbo", - table: "Basedata_ProductionLine", - newName: "RawLocationCode"); - - migrationBuilder.RenameColumn( - name: "ProductLocation", - schema: "dbo", - table: "Basedata_ProductionLine", - newName: "ProductLocationCode"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "RawLocationCode", - schema: "dbo", - table: "Basedata_WorkStation", - newName: "RawLocation"); - - migrationBuilder.RenameColumn( - name: "ProductLocationCode", - schema: "dbo", - table: "Basedata_WorkStation", - newName: "ProductLocation"); - - migrationBuilder.RenameColumn( - name: "RawLocationCode", - schema: "dbo", - table: "Basedata_ProductionLine", - newName: "RawLocation"); - - migrationBuilder.RenameColumn( - name: "ProductLocationCode", - schema: "dbo", - table: "Basedata_ProductionLine", - newName: "ProductLocation"); - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230111010832_RemoveUseless.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230111010832_RemoveUseless.Designer.cs deleted file mode 100644 index a49468ad9..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230111010832_RemoveUseless.Designer.cs +++ /dev/null @@ -1,3526 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Basedata.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations -{ - [DbContext(typeof(BasedataDbContext))] - [Migration("20230111010832_RemoveUseless")] - partial class RemoveUseless - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AQL", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CeilingQty") - .HasColumnType("decimal(18,6)"); - - 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,6)"); - - 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,6)"); - - b.Property("SampleQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode", "FloorQty") - .IsUnique(); - - b.ToTable("Basedata_AQL", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Area", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaType") - .HasColumnType("int"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Area", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ComponentQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ComponentUom") - .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("EndTime") - .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("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", "Component") - .IsUnique(); - - b.ToTable("Basedata_Bom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("EndTime") - .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("Module") - .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("Module") - .IsUnique() - .HasFilter("[Module] IS NOT NULL"); - - b.ToTable("Basedata_Calendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Category", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Category", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Currency", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Currency", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CurrencyExchange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicCurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CurrencyId", "BasicCurrencyId") - .IsUnique(); - - b.ToTable("Basedata_CurrencyExchange", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Customer", b => - { - b.Property("Id") - .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("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("ShortName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Customer", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerAddress", b => - { - b.Property("Id") - .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("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("Code", "CustomerCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerAddress", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - 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("CustomerCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dict", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterId") - .HasColumnType("uniqueidentifier"); - - 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("Value") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterId"); - - b.ToTable("Basedata_DictItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DocumentSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberFormat") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberPrefix") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSeparator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSerialLength") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransactionType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_DocumentSetting", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_ErpLocation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InterfaceCalendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConvertToTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Month") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_InterfaceCalendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemBasic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BasicUom") - .HasColumnType("nvarchar(max)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("CanOutsourcing") - .HasColumnType("bit"); - - b.Property("Category") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Color") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Eco") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Elevel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("IsRecycled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManageType") - .HasColumnType("int"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLine") - .HasColumnType("nvarchar(max)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Validity") - .HasColumnType("int"); - - b.Property("ValidityUnit") - .HasColumnType("int"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ItemBasic", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryCode") - .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("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("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("CategoryCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemCategory", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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("PictureBlobName") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Step") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemGuideBook", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicUom") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PackCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "PackCode") - .IsUnique(); - - b.ToTable("Basedata_ItemPack", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemQuality", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectType") - .HasColumnType("int"); - - 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("Status") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "SupplierCode") - .IsUnique(); - - b.ToTable("Basedata_ItemQuality", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemSafetyStock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FeedLine") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("MaxStock") - .HasColumnType("decimal(18,6)"); - - b.Property("MinStock") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SafetyStock") - .HasColumnType("decimal(18,6)"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "WarehouseCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemSafetyStock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemStoreRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltUm") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AltUmQty") - .HasColumnType("decimal(18,6)"); - - 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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsFixed") - .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("MultiLoc") - .HasColumnType("int"); - - b.Property("PramaryUM") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StoreRelationType") - .HasColumnType("int"); - - b.Property("StoreUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UmQty") - .HasColumnType("decimal(18,6)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemStoreRelation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ColumnCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - 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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("EnableBreakStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableKeepZero") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixItem") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixLot") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixStatus") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableNegative") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOpportunityCount") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOverPick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnablePick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReceive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnFromCustomer") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnToSupplier") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableShip") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitBox") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitPallet") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableWholeStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("ErpLocationCode") - .IsRequired() - .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("LocationGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickOrder") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("ShelfCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Location", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .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("DefaultInventoryStatus") - .HasColumnType("int"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("EnableBreakStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableKeepZero") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixItem") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixLot") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixStatus") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableNegative") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOpportunityCount") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOverPick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnablePick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReceive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnFromCustomer") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnToSupplier") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableShip") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitBox") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitPallet") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableWholeStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OverflowLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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") - .IsUnique(); - - b.ToTable("Basedata_LocationGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStationId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Machine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroupCode") - .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") - .HasColumnType("int"); - - b.Property("WorkshopCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ProductionLine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLineItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProdLineCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ProductionLineItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Project", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.PurchasePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_PurchasePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SalePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("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", "CustomerId") - .IsUnique(); - - b.ToTable("Basedata_SalePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EndAtNextDay") - .HasColumnType("bit"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Shift", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StdCostPriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "SupplierId") - .IsUnique(); - - b.ToTable("Basedata_StdCostPriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Supplier", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Bank") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("City") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - 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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Supplier", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("QtyPerPallet") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierSimpleName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_SupplierItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierTimeWindow", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - 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("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeSlot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Week") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "TimeSlot", "Week") - .IsUnique(); - - b.ToTable("Basedata_SupplierTimeWindow", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Team", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Members") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .IsUnique(); - - b.ToTable("Basedata_Team", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.TransactionType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoAgreeRequest") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandleRequest") - .HasColumnType("bit"); - - b.Property("AutoSubmitRequest") - .HasColumnType("bit"); - - 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") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("InLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OutInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OutLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("OutLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransSubType") - .HasColumnType("int"); - - b.Property("TransType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("TransType", "TransSubType") - .IsUnique(); - - b.ToTable("Basedata_TransactionType", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Uom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Uom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Warehouse", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Warehouse", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_WorkGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkShop", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_WorkShop", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkStation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionLineCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .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") - .IsUnique(); - - b.ToTable("Basedata_WorkStation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.Dict", null) - .WithMany("Items") - .HasForeignKey("MasterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemGuideBookId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemGuideBookId"); - - b1.ToTable("Basedata_ItemGuideBook", "dbo"); - - b1.WithOwner() - .HasForeignKey("ItemGuideBookId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Navigation("Items"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230111010832_RemoveUseless.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230111010832_RemoveUseless.cs deleted file mode 100644 index 8d1e3e30b..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230111010832_RemoveUseless.cs +++ /dev/null @@ -1,468 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations; - -public partial class RemoveUseless : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Basedata_AreaItem", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_Configuration", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_CustomerBom", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_InventoryRoute", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_Param", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_ProdLineItem", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_Route", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_Rule", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_Strategy", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_StrategyRule", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_SupplierTime", - schema: "dbo"); - - migrationBuilder.CreateTable( - name: "Basedata_ProductionLineItem", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ProdLineCode = table.Column(type: "nvarchar(450)", nullable: false), - ItemCode = table.Column(type: "nvarchar(450)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ProductionLineItem", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_SupplierTimeWindow", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - TimeSlot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Week = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_SupplierTimeWindow", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ProductionLineItem_ProdLineCode_ItemCode", - schema: "dbo", - table: "Basedata_ProductionLineItem", - columns: new[] { "ProdLineCode", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SupplierTimeWindow_SupplierCode_TimeSlot_Week", - schema: "dbo", - table: "Basedata_SupplierTimeWindow", - columns: new[] { "SupplierCode", "TimeSlot", "Week" }, - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Basedata_ProductionLineItem", - schema: "dbo"); - - migrationBuilder.DropTable( - name: "Basedata_SupplierTimeWindow", - schema: "dbo"); - - migrationBuilder.CreateTable( - name: "Basedata_AreaItem", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Allowed = table.Column(type: "bit", nullable: false), - AreaId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ItemId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - UomId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_AreaItem", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Configuration", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Key = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Value = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Configuration", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_CustomerBom", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ChildItemId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - CustomerId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - EffectiveTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - FailureTime = table.Column(type: "datetime2", nullable: false), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - ParentItemId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), - Qty = table.Column(type: "decimal(18,6)", nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_CustomerBom", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_InventoryRoute", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_InventoryRoute", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Param", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Enabled = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Group = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Value = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Param", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_ProdLineItem", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(450)", nullable: false), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - ProdLineCode = table.Column(type: "nvarchar(450)", nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_ProdLineItem", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Route", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Route", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Rule", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Rule", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_Strategy", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - Description = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Type = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_Strategy", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_StrategyRule", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - EffectiveTime = table.Column(type: "datetime2", nullable: false), - ExpireTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - RuleId = table.Column(type: "uniqueidentifier", nullable: false), - Seq = table.Column(type: "int", nullable: false), - StrategyId = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_StrategyRule", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Basedata_SupplierTime", - schema: "dbo", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - TimeSlot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Week = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_SupplierTime", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_AreaItem_AreaId_ItemId", - schema: "dbo", - table: "Basedata_AreaItem", - columns: new[] { "AreaId", "ItemId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Configuration_Key", - schema: "dbo", - table: "Basedata_Configuration", - column: "Key", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_CustomerBom_CustomerId_ParentItemId_ChildItemId", - schema: "dbo", - table: "Basedata_CustomerBom", - columns: new[] { "CustomerId", "ParentItemId", "ChildItemId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_InventoryRoute_Code", - schema: "dbo", - table: "Basedata_InventoryRoute", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Param_Code", - schema: "dbo", - table: "Basedata_Param", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_ProdLineItem_ProdLineCode_ItemCode", - schema: "dbo", - table: "Basedata_ProdLineItem", - columns: new[] { "ProdLineCode", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Route_Code", - schema: "dbo", - table: "Basedata_Route", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Rule_Code", - schema: "dbo", - table: "Basedata_Rule", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_Strategy_Code", - schema: "dbo", - table: "Basedata_Strategy", - column: "Code", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_StrategyRule_StrategyId_RuleId", - schema: "dbo", - table: "Basedata_StrategyRule", - columns: new[] { "StrategyId", "RuleId" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_SupplierTime_SupplierCode_TimeSlot_Week", - schema: "dbo", - table: "Basedata_SupplierTime", - columns: new[] { "SupplierCode", "TimeSlot", "Week" }, - unique: true); - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215005944_EnumToString.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215005944_EnumToString.Designer.cs deleted file mode 100644 index e71470977..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215005944_EnumToString.Designer.cs +++ /dev/null @@ -1,3545 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Basedata.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations -{ - [DbContext(typeof(BasedataDbContext))] - [Migration("20230215005944_EnumToString")] - partial class EnumToString - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.13") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AQL", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CeilingQty") - .HasColumnType("decimal(18,6)"); - - 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,6)"); - - 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,6)"); - - b.Property("SampleQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode", "FloorQty") - .IsUnique(); - - b.ToTable("Basedata_AQL", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Area", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - 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") - .IsUnique(); - - b.ToTable("Basedata_Area", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ComponentQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ComponentUom") - .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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ERPOp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Layer") - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("MFGOp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlannedSplitRule") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Product", "Component") - .IsUnique(); - - b.ToTable("Basedata_Bom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("EndTime") - .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("Module") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Module") - .IsUnique() - .HasFilter("[Module] IS NOT NULL"); - - b.ToTable("Basedata_Calendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Category", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Category", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Currency", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Currency", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CurrencyExchange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicCurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CurrencyId", "BasicCurrencyId") - .IsUnique(); - - b.ToTable("Basedata_CurrencyExchange", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Customer", b => - { - b.Property("Id") - .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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Customer", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerAddress", b => - { - b.Property("Id") - .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("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("Code", "CustomerCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerAddress", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - 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("CustomerCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dict", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterId") - .HasColumnType("uniqueidentifier"); - - 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("Value") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterId"); - - b.ToTable("Basedata_DictItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("DefaultLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DocumentSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberFormat") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberPrefix") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSeparator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSerialLength") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransactionType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_DocumentSetting", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_ErpLocation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InterfaceCalendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConvertToTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Month") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_InterfaceCalendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemBasic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BasicUom") - .HasColumnType("nvarchar(max)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("CanOutsourcing") - .HasColumnType("bit"); - - b.Property("Category") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Color") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Eco") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Elevel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("IsRecycled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManageType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Validity") - .HasColumnType("int"); - - b.Property("ValidityUnit") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ItemBasic", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryCode") - .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("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("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("CategoryCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemCategory", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - 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("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("PictureBlobName") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Step") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemGuideBook", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicUom") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PackCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "PackCode") - .IsUnique(); - - b.ToTable("Basedata_ItemPack", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemQuality", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("Status") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasDefaultValue("Open"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "SupplierCode") - .IsUnique(); - - b.ToTable("Basedata_ItemQuality", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemSafetyStock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FeedLine") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("MaxStock") - .HasColumnType("decimal(18,6)"); - - b.Property("MinStock") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SafetyStock") - .HasColumnType("decimal(18,6)"); - - b.Property("StoreRelationType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "WarehouseCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemSafetyStock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemStoreRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltUm") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AltUmQty") - .HasColumnType("decimal(18,6)"); - - 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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsFixed") - .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("MultiLoc") - .HasColumnType("int"); - - b.Property("PramaryUM") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StoreRelationType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UmQty") - .HasColumnType("decimal(18,6)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemStoreRelation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ColumnCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - 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("DefaultInventoryStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EnableBreakStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableKeepZero") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixItem") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixLot") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixStatus") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableNegative") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOpportunityCount") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOverPick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnablePick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReceive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnFromCustomer") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnToSupplier") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableShip") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitBox") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitPallet") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableWholeStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("ErpLocationCode") - .IsRequired() - .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("LocationGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickOrder") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("ShelfCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Location", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .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("DefaultInventoryStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EnableBreakStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableKeepZero") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixItem") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixLot") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixStatus") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableNegative") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOpportunityCount") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOverPick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnablePick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReceive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnFromCustomer") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnToSupplier") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableShip") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitBox") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitPallet") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableWholeStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OverflowLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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") - .IsUnique(); - - b.ToTable("Basedata_LocationGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStationId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Machine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroupCode") - .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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkshopCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ProductionLine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLineItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProdLineCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ProductionLineItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Project", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.PurchasePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_PurchasePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SalePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("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", "CustomerId") - .IsUnique(); - - b.ToTable("Basedata_SalePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EndAtNextDay") - .HasColumnType("bit"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Shift", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StdCostPriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "SupplierId") - .IsUnique(); - - b.ToTable("Basedata_StdCostPriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Supplier", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Bank") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("City") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - 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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Supplier", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("QtyPerPallet") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierSimpleName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_SupplierItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierTimeWindow", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - 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("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeSlot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Week") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "TimeSlot", "Week") - .IsUnique(); - - b.ToTable("Basedata_SupplierTimeWindow", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Team", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Members") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .IsUnique(); - - b.ToTable("Basedata_Team", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.TransactionType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoAgreeRequest") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandleRequest") - .HasColumnType("bit"); - - b.Property("AutoSubmitRequest") - .HasColumnType("bit"); - - 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") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("InLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OutInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OutLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("OutLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransSubType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("TransType", "TransSubType") - .IsUnique(); - - b.ToTable("Basedata_TransactionType", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Uom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Uom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Warehouse", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Warehouse", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_WorkGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkShop", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_WorkShop", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkStation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionLineCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .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.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_WorkStation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.Dict", null) - .WithMany("Items") - .HasForeignKey("MasterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Navigation("Items"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215005944_EnumToString.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215005944_EnumToString.cs deleted file mode 100644 index 4014d749b..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215005944_EnumToString.cs +++ /dev/null @@ -1,883 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations -{ - public partial class EnumToString : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "ProductLine", - schema: "dbo", - table: "Basedata_ItemBasic"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - schema: "dbo", - table: "Basedata_ItemGuideBook", - newName: "Name"); - - migrationBuilder.RenameColumn( - name: "Item_Desc2", - schema: "dbo", - table: "Basedata_ItemGuideBook", - newName: "Desc2"); - - migrationBuilder.RenameColumn( - name: "Item_Desc1", - schema: "dbo", - table: "Basedata_ItemGuideBook", - newName: "Desc1"); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_WorkStation", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_WorkGroup", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_Uom", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Uom", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TransType", - schema: "dbo", - table: "Basedata_TransactionType", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "TransSubType", - schema: "dbo", - table: "Basedata_TransactionType", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_Supplier", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Project", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_ProductionLine", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "GroupType", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DefaultInventoryStatus", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_Location", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Location", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DefaultInventoryStatus", - schema: "dbo", - table: "Basedata_Location", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "StoreRelationType", - schema: "dbo", - table: "Basedata_ItemStoreRelation", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "PramaryUM", - schema: "dbo", - table: "Basedata_ItemStoreRelation", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "StoreRelationType", - schema: "dbo", - table: "Basedata_ItemSafetyStock", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - schema: "dbo", - table: "Basedata_ItemQuality", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "Open", - oldClrType: typeof(int), - oldType: "int", - oldDefaultValue: 1); - - migrationBuilder.AlterColumn( - name: "InspectType", - schema: "dbo", - table: "Basedata_ItemQuality", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_ItemQuality", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Name", - schema: "dbo", - table: "Basedata_ItemGuideBook", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Desc2", - schema: "dbo", - table: "Basedata_ItemGuideBook", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Desc1", - schema: "dbo", - table: "Basedata_ItemGuideBook", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ValidityUnit", - schema: "dbo", - table: "Basedata_ItemBasic", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - schema: "dbo", - table: "Basedata_ItemBasic", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ManageType", - schema: "dbo", - table: "Basedata_ItemBasic", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_ErpLocation", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Dock", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_Customer", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ShortName", - schema: "dbo", - table: "Basedata_Customer", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Category", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Status", - schema: "dbo", - table: "Basedata_Calendar", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "TruncType", - schema: "dbo", - table: "Basedata_Bom", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "PlannedSplitRule", - schema: "dbo", - table: "Basedata_Bom", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DistributionType", - schema: "dbo", - table: "Basedata_Bom", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Area", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AreaType", - schema: "dbo", - table: "Basedata_Area", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "Name", - schema: "dbo", - table: "Basedata_ItemGuideBook", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "Desc2", - schema: "dbo", - table: "Basedata_ItemGuideBook", - newName: "Item_Desc2"); - - migrationBuilder.RenameColumn( - name: "Desc1", - schema: "dbo", - table: "Basedata_ItemGuideBook", - newName: "Item_Desc1"); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_WorkStation", - type: "int", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_WorkGroup", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_Uom", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Uom", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "TransType", - schema: "dbo", - table: "Basedata_TransactionType", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "TransSubType", - schema: "dbo", - table: "Basedata_TransactionType", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_Supplier", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Project", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_ProductionLine", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "GroupType", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DefaultInventoryStatus", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_Location", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Location", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "DefaultInventoryStatus", - schema: "dbo", - table: "Basedata_Location", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "StoreRelationType", - schema: "dbo", - table: "Basedata_ItemStoreRelation", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "PramaryUM", - schema: "dbo", - table: "Basedata_ItemStoreRelation", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "StoreRelationType", - schema: "dbo", - table: "Basedata_ItemSafetyStock", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - schema: "dbo", - table: "Basedata_ItemQuality", - type: "int", - nullable: false, - defaultValue: 1, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "Open"); - - migrationBuilder.AlterColumn( - name: "InspectType", - schema: "dbo", - table: "Basedata_ItemQuality", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_ItemQuality", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - schema: "dbo", - table: "Basedata_ItemGuideBook", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - schema: "dbo", - table: "Basedata_ItemGuideBook", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - schema: "dbo", - table: "Basedata_ItemGuideBook", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ValidityUnit", - schema: "dbo", - table: "Basedata_ItemBasic", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - schema: "dbo", - table: "Basedata_ItemBasic", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ManageType", - schema: "dbo", - table: "Basedata_ItemBasic", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "ProductLine", - schema: "dbo", - table: "Basedata_ItemBasic", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_ErpLocation", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Dock", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Type", - schema: "dbo", - table: "Basedata_Customer", - type: "int", - maxLength: 64, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ShortName", - schema: "dbo", - table: "Basedata_Customer", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Category", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Status", - schema: "dbo", - table: "Basedata_Calendar", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "TruncType", - schema: "dbo", - table: "Basedata_Bom", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "PlannedSplitRule", - schema: "dbo", - table: "Basedata_Bom", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "DistributionType", - schema: "dbo", - table: "Basedata_Bom", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Description", - schema: "dbo", - table: "Basedata_Area", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AreaType", - schema: "dbo", - table: "Basedata_Area", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215071620_BasedataEnumToString.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215071620_BasedataEnumToString.Designer.cs deleted file mode 100644 index 9c93704a2..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215071620_BasedataEnumToString.Designer.cs +++ /dev/null @@ -1,3543 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Basedata.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations -{ - [DbContext(typeof(BasedataDbContext))] - [Migration("20230215071620_BasedataEnumToString")] - partial class BasedataEnumToString - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.13") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.AQL", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CeilingQty") - .HasColumnType("decimal(18,6)"); - - 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,6)"); - - 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,6)"); - - b.Property("SampleQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode", "FloorQty") - .IsUnique(); - - b.ToTable("Basedata_AQL", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Area", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - 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") - .IsUnique(); - - b.ToTable("Basedata_Area", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Bom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Component") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ComponentQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ComponentUom") - .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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ERPOp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Layer") - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("MFGOp") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlannedSplitRule") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Product", "Component") - .IsUnique(); - - b.ToTable("Basedata_Bom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Calendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("EndTime") - .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("Module") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Module") - .IsUnique() - .HasFilter("[Module] IS NOT NULL"); - - b.ToTable("Basedata_Calendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Category", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Category", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Currency", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Currency", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CurrencyExchange", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicCurrencyId") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("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,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("CurrencyId", "BasicCurrencyId") - .IsUnique(); - - b.ToTable("Basedata_CurrencyExchange", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Customer", b => - { - b.Property("Id") - .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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Customer", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerAddress", b => - { - b.Property("Id") - .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("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("Code", "CustomerCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerAddress", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.CustomerItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - 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("CustomerCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_CustomerItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dict", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterId") - .HasColumnType("uniqueidentifier"); - - 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("Value") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterId"); - - b.ToTable("Basedata_DictItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("DefaultLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Dock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DocumentSetting", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberFormat") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberPrefix") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSeparator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("NumberSerialLength") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransactionType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_DocumentSetting", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ErpLocation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_ErpLocation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.InterfaceCalendar", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConvertToTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Month") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_InterfaceCalendar", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemBasic", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BasicUom") - .HasColumnType("nvarchar(max)"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("CanOutsourcing") - .HasColumnType("bit"); - - b.Property("Category") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Color") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Eco") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Elevel") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsPhantom") - .HasColumnType("bit"); - - b.Property("IsRecycled") - .HasColumnType("bit"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ManageType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Project") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Validity") - .HasColumnType("int"); - - b.Property("ValidityUnit") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ItemBasic", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemCategory", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CategoryCode") - .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("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("Value") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.HasKey("Id"); - - b.HasIndex("CategoryCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemCategory", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemGuideBook", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - 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("Name") - .HasColumnType("nvarchar(max)"); - - b.Property("PictureBlobName") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Step") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ItemGuideBook", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemPack", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BasicUom") - .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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("PackCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "PackCode") - .IsUnique(); - - b.ToTable("Basedata_ItemPack", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemQuality", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "SupplierCode") - .IsUnique(); - - b.ToTable("Basedata_ItemQuality", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemSafetyStock", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FeedLine") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FeedUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("MaxStock") - .HasColumnType("decimal(18,6)"); - - b.Property("MinStock") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SafetyStock") - .HasColumnType("decimal(18,6)"); - - b.Property("StoreRelationType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "WarehouseCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemSafetyStock", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ItemStoreRelation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AltUm") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AltUmQty") - .HasColumnType("decimal(18,6)"); - - 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("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsFixed") - .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("MultiLoc") - .HasColumnType("int"); - - b.Property("PramaryUM") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StoreRelationType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreUM") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StoreValue") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UmQty") - .HasColumnType("decimal(18,6)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode", "StoreRelationType", "StoreValue") - .IsUnique() - .HasFilter("[StoreValue] IS NOT NULL"); - - b.ToTable("Basedata_ItemStoreRelation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Location", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ColumnCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - 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("DefaultInventoryStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EnableBreakStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableKeepZero") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixItem") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixLot") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixStatus") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableNegative") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOpportunityCount") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOverPick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnablePick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReceive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnFromCustomer") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnToSupplier") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableShip") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitBox") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitPallet") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableWholeStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("ErpLocationCode") - .IsRequired() - .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("LocationGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickOrder") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowCode") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("ShelfCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroupCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Location", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.LocationGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .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("DefaultInventoryStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EnableBreakStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableKeepZero") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixItem") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixLot") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableMixStatus") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableNegative") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOpportunityCount") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableOverPick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnablePick") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReceive") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnFromCustomer") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableReturnToSupplier") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableShip") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitBox") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableSplitPallet") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("EnableWholeStore") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("GroupType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OverflowLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PickPriority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - 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") - .IsUnique(); - - b.ToTable("Basedata_LocationGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Machine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLineId") - .HasColumnType("uniqueidentifier"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStationId") - .HasColumnType("uniqueidentifier"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Machine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLine", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroupCode") - .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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkshopCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_ProductionLine", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.ProductionLineItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("ProdLineCode") - .IsRequired() - .HasColumnType("nvarchar(450)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("ProdLineCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_ProductionLineItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Project", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Project", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.PurchasePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_PurchasePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SalePriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("CustomerId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("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", "CustomerId") - .IsUnique(); - - b.ToTable("Basedata_SalePriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Shift", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Code") - .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("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("EndAtNextDay") - .HasColumnType("bit"); - - b.Property("EndTime") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Shift", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.StdCostPriceSheet", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("CurrencyId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - - b.Property("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierId") - .HasColumnType("uniqueidentifier"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("Code", "SupplierId") - .IsUnique(); - - b.ToTable("Basedata_StdCostPriceSheet", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Supplier", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Address") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("Bank") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("City") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(true); - - 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("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("ShortName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Supplier", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierItem", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("QtyPerPallet") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierSimpleName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "ItemCode") - .IsUnique(); - - b.ToTable("Basedata_SupplierItem", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.SupplierTimeWindow", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - 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("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeSlot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Week") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode", "TimeSlot", "Week") - .IsUnique(); - - b.ToTable("Basedata_SupplierTimeWindow", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Team", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Members") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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") - .IsUnique(); - - b.ToTable("Basedata_Team", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.TransactionType", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AutoAgreeRequest") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandleRequest") - .HasColumnType("bit"); - - b.Property("AutoSubmitRequest") - .HasColumnType("bit"); - - 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") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("Enabled") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("InLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("OutInventoryStatuses") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OutLocationAreas") - .HasColumnType("nvarchar(max)"); - - b.Property("OutLocationTypes") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransSubType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TransType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("TransType", "TransSubType") - .IsUnique(); - - b.ToTable("Basedata_TransactionType", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Uom", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_Uom", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Warehouse", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_Warehouse", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkGroup", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_WorkGroup", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkShop", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("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") - .IsUnique(); - - b.ToTable("Basedata_WorkShop", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.WorkStation", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Code") - .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("Description") - .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("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionLineCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .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.HasKey("Id"); - - b.HasIndex("Code") - .IsUnique(); - - b.ToTable("Basedata_WorkStation", "dbo"); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.DictItem", b => - { - b.HasOne("Win_in.Sfs.Basedata.Domain.Dict", null) - .WithMany("Items") - .HasForeignKey("MasterId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Basedata.Domain.Dict", b => - { - b.Navigation("Items"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215071620_BasedataEnumToString.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215071620_BasedataEnumToString.cs deleted file mode 100644 index e9e1f9cd0..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20230215071620_BasedataEnumToString.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations -{ - public partial class BasedataEnumToString : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Status", - schema: "dbo", - table: "Basedata_ItemQuality", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "Open"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Status", - schema: "dbo", - table: "Basedata_ItemQuality", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "Open", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240222061733_myInit.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240222061733_myInit.cs deleted file mode 100644 index 28d4bc800..000000000 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240222061733_myInit.cs +++ /dev/null @@ -1,1424 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Basedata.Migrations -{ - public partial class myInit : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameTable( - name: "Basedata_WorkStation", - schema: "dbo", - newName: "Basedata_WorkStation"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkShop", - schema: "dbo", - newName: "Basedata_WorkShop"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkGroup", - schema: "dbo", - newName: "Basedata_WorkGroup"); - - migrationBuilder.RenameTable( - name: "Basedata_Warehouse", - schema: "dbo", - newName: "Basedata_Warehouse"); - - migrationBuilder.RenameTable( - name: "Basedata_Uom", - schema: "dbo", - newName: "Basedata_Uom"); - - migrationBuilder.RenameTable( - name: "Basedata_TransactionType", - schema: "dbo", - newName: "Basedata_TransactionType"); - - migrationBuilder.RenameTable( - name: "Basedata_Team", - schema: "dbo", - newName: "Basedata_Team"); - - migrationBuilder.RenameTable( - name: "Basedata_SupplierTimeWindow", - schema: "dbo", - newName: "Basedata_SupplierTimeWindow"); - - migrationBuilder.RenameTable( - name: "Basedata_SupplierItem", - schema: "dbo", - newName: "Basedata_SupplierItem"); - - migrationBuilder.RenameTable( - name: "Basedata_Supplier", - schema: "dbo", - newName: "Basedata_Supplier"); - - migrationBuilder.RenameTable( - name: "Basedata_StdCostPriceSheet", - schema: "dbo", - newName: "Basedata_StdCostPriceSheet"); - - migrationBuilder.RenameTable( - name: "Basedata_Shift", - schema: "dbo", - newName: "Basedata_Shift"); - - migrationBuilder.RenameTable( - name: "Basedata_SalePriceSheet", - schema: "dbo", - newName: "Basedata_SalePriceSheet"); - - migrationBuilder.RenameTable( - name: "Basedata_PurchasePriceSheet", - schema: "dbo", - newName: "Basedata_PurchasePriceSheet"); - - migrationBuilder.RenameTable( - name: "Basedata_Project", - schema: "dbo", - newName: "Basedata_Project"); - - migrationBuilder.RenameTable( - name: "Basedata_ProductionLineItem", - schema: "dbo", - newName: "Basedata_ProductionLineItem"); - - migrationBuilder.RenameTable( - name: "Basedata_ProductionLine", - schema: "dbo", - newName: "Basedata_ProductionLine"); - - migrationBuilder.RenameTable( - name: "Basedata_Machine", - schema: "dbo", - newName: "Basedata_Machine"); - - migrationBuilder.RenameTable( - name: "Basedata_LocationGroup", - schema: "dbo", - newName: "Basedata_LocationGroup"); - - migrationBuilder.RenameTable( - name: "Basedata_Location", - schema: "dbo", - newName: "Basedata_Location"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemStoreRelation", - schema: "dbo", - newName: "Basedata_ItemStoreRelation"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemSafetyStock", - schema: "dbo", - newName: "Basedata_ItemSafetyStock"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemQuality", - schema: "dbo", - newName: "Basedata_ItemQuality"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemPack", - schema: "dbo", - newName: "Basedata_ItemPack"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemGuideBook", - schema: "dbo", - newName: "Basedata_ItemGuideBook"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemCategory", - schema: "dbo", - newName: "Basedata_ItemCategory"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemBasic", - schema: "dbo", - newName: "Basedata_ItemBasic"); - - migrationBuilder.RenameTable( - name: "Basedata_InterfaceCalendar", - schema: "dbo", - newName: "Basedata_InterfaceCalendar"); - - migrationBuilder.RenameTable( - name: "Basedata_ErpLocation", - schema: "dbo", - newName: "Basedata_ErpLocation"); - - migrationBuilder.RenameTable( - name: "Basedata_DocumentSetting", - schema: "dbo", - newName: "Basedata_DocumentSetting"); - - migrationBuilder.RenameTable( - name: "Basedata_Dock", - schema: "dbo", - newName: "Basedata_Dock"); - - migrationBuilder.RenameTable( - name: "Basedata_DictItem", - schema: "dbo", - newName: "Basedata_DictItem"); - - migrationBuilder.RenameTable( - name: "Basedata_Dict", - schema: "dbo", - newName: "Basedata_Dict"); - - migrationBuilder.RenameTable( - name: "Basedata_CustomerItem", - schema: "dbo", - newName: "Basedata_CustomerItem"); - - migrationBuilder.RenameTable( - name: "Basedata_CustomerAddress", - schema: "dbo", - newName: "Basedata_CustomerAddress"); - - migrationBuilder.RenameTable( - name: "Basedata_Customer", - schema: "dbo", - newName: "Basedata_Customer"); - - migrationBuilder.RenameTable( - name: "Basedata_CurrencyExchange", - schema: "dbo", - newName: "Basedata_CurrencyExchange"); - - migrationBuilder.RenameTable( - name: "Basedata_Currency", - schema: "dbo", - newName: "Basedata_Currency"); - - migrationBuilder.RenameTable( - name: "Basedata_Category", - schema: "dbo", - newName: "Basedata_Category"); - - migrationBuilder.RenameTable( - name: "Basedata_Calendar", - schema: "dbo", - newName: "Basedata_Calendar"); - - migrationBuilder.RenameTable( - name: "Basedata_Bom", - schema: "dbo", - newName: "Basedata_Bom"); - - migrationBuilder.RenameTable( - name: "Basedata_Area", - schema: "dbo", - newName: "Basedata_Area"); - - migrationBuilder.RenameTable( - name: "Basedata_AQL", - schema: "dbo", - newName: "Basedata_AQL"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_WorkStation", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_WorkShop", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_WorkGroup", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Warehouse", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Uom", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_TransactionType", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Team", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_SupplierTimeWindow", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_SupplierItem", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Supplier", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_StdCostPriceSheet", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Shift", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_SalePriceSheet", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_PurchasePriceSheet", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Project", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_ProductionLineItem", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_ProductionLine", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Machine", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_LocationGroup", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Location", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_ItemStoreRelation", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_ItemSafetyStock", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_ItemQuality", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_ItemPack", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_ItemGuideBook", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_ItemCategory", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_ItemBasic", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_ErpLocation", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_DocumentSetting", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Dock", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_DictItem", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Dict", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_CustomerItem", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Customer", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_CurrencyExchange", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Currency", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Category", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Calendar", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Bom", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_Area", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Basedata_AQL", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.CreateTable( - name: "Basedata_PositionCode", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - PartCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Basedata_PositionCode", x => x.Id); - }); - - migrationBuilder.CreateIndex( - name: "IX_Basedata_PositionCode_Code", - table: "Basedata_PositionCode", - column: "Code", - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Basedata_PositionCode"); - - migrationBuilder.EnsureSchema( - name: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkStation", - newName: "Basedata_WorkStation", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkShop", - newName: "Basedata_WorkShop", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_WorkGroup", - newName: "Basedata_WorkGroup", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Warehouse", - newName: "Basedata_Warehouse", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Uom", - newName: "Basedata_Uom", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_TransactionType", - newName: "Basedata_TransactionType", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Team", - newName: "Basedata_Team", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_SupplierTimeWindow", - newName: "Basedata_SupplierTimeWindow", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_SupplierItem", - newName: "Basedata_SupplierItem", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Supplier", - newName: "Basedata_Supplier", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_StdCostPriceSheet", - newName: "Basedata_StdCostPriceSheet", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Shift", - newName: "Basedata_Shift", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_SalePriceSheet", - newName: "Basedata_SalePriceSheet", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_PurchasePriceSheet", - newName: "Basedata_PurchasePriceSheet", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Project", - newName: "Basedata_Project", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ProductionLineItem", - newName: "Basedata_ProductionLineItem", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ProductionLine", - newName: "Basedata_ProductionLine", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Machine", - newName: "Basedata_Machine", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_LocationGroup", - newName: "Basedata_LocationGroup", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Location", - newName: "Basedata_Location", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemStoreRelation", - newName: "Basedata_ItemStoreRelation", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemSafetyStock", - newName: "Basedata_ItemSafetyStock", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemQuality", - newName: "Basedata_ItemQuality", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemPack", - newName: "Basedata_ItemPack", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemGuideBook", - newName: "Basedata_ItemGuideBook", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemCategory", - newName: "Basedata_ItemCategory", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ItemBasic", - newName: "Basedata_ItemBasic", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_InterfaceCalendar", - newName: "Basedata_InterfaceCalendar", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_ErpLocation", - newName: "Basedata_ErpLocation", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_DocumentSetting", - newName: "Basedata_DocumentSetting", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Dock", - newName: "Basedata_Dock", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_DictItem", - newName: "Basedata_DictItem", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Dict", - newName: "Basedata_Dict", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_CustomerItem", - newName: "Basedata_CustomerItem", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_CustomerAddress", - newName: "Basedata_CustomerAddress", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Customer", - newName: "Basedata_Customer", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_CurrencyExchange", - newName: "Basedata_CurrencyExchange", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Currency", - newName: "Basedata_Currency", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Category", - newName: "Basedata_Category", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Calendar", - newName: "Basedata_Calendar", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Bom", - newName: "Basedata_Bom", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_Area", - newName: "Basedata_Area", - newSchema: "dbo"); - - migrationBuilder.RenameTable( - name: "Basedata_AQL", - newName: "Basedata_AQL", - newSchema: "dbo"); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_WorkStation", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_WorkShop", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_WorkGroup", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Warehouse", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Uom", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_TransactionType", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Team", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_SupplierTimeWindow", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_SupplierItem", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Supplier", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_StdCostPriceSheet", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Shift", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_SalePriceSheet", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_PurchasePriceSheet", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Project", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_ProductionLineItem", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_ProductionLine", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Machine", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_LocationGroup", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Location", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_ItemStoreRelation", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_ItemSafetyStock", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_ItemQuality", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_ItemPack", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_ItemGuideBook", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_ItemCategory", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_ItemBasic", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_ErpLocation", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_DocumentSetting", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Dock", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_DictItem", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Dict", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_CustomerItem", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Customer", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_CurrencyExchange", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Currency", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Category", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Calendar", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Bom", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_Area", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - schema: "dbo", - table: "Basedata_AQL", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - } - } -} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240222061733_myInit.Designer.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240223065132_base.Designer.cs similarity index 99% rename from be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240222061733_myInit.Designer.cs rename to be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240223065132_base.Designer.cs index 1118c65d3..9b52fae10 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240222061733_myInit.Designer.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240223065132_base.Designer.cs @@ -13,8 +13,8 @@ using Win_in.Sfs.Basedata.EntityFrameworkCore; namespace Win_in.Sfs.Basedata.Migrations { [DbContext(typeof(BasedataDbContext))] - [Migration("20240222061733_myInit")] - partial class myInit + [Migration("20240223065132_base")] + partial class @base { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -2322,8 +2322,9 @@ namespace Win_in.Sfs.Basedata.Migrations b.HasKey("Id"); - b.HasIndex("Code") - .IsUnique(); + b.HasIndex("Code", "PartCode", "LocationCode") + .IsUnique() + .HasFilter("[PartCode] IS NOT NULL AND [LocationCode] IS NOT NULL"); b.ToTable("Basedata_PositionCode", (string)null); }); @@ -2542,11 +2543,6 @@ namespace Win_in.Sfs.Basedata.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2562,7 +2558,6 @@ namespace Win_in.Sfs.Basedata.Migrations .HasColumnName("CreatorId"); b.Property("CurrencyId") - .HasMaxLength(64) .HasColumnType("uniqueidentifier"); b.Property("Description") @@ -2573,6 +2568,10 @@ namespace Win_in.Sfs.Basedata.Migrations .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); + b.Property("ItemCode") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); @@ -2581,27 +2580,26 @@ namespace Win_in.Sfs.Basedata.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + b.Property("MaterialPrice") + .HasColumnType("decimal(18,6)"); + + b.Property("ProductPrice") + .HasColumnType("decimal(18,6)"); b.Property("Remark") .HasMaxLength(3072) .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); - b.HasIndex("Code") - .IsUnique(); + b.HasIndex("ItemCode") + .IsUnique() + .HasFilter("[ItemCode] IS NOT NULL"); b.ToTable("Basedata_PurchasePriceSheet", (string)null); }); diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240223065132_base.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240223065132_base.cs new file mode 100644 index 000000000..e9c641818 --- /dev/null +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/20240223065132_base.cs @@ -0,0 +1,1603 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Win_in.Sfs.Basedata.Migrations +{ + public partial class @base : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Basedata_AQL", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + AbcClass = table.Column(type: "nvarchar(max)", nullable: true), + FloorQty = table.Column(type: "decimal(18,6)", nullable: false), + CeilingQty = table.Column(type: "decimal(18,6)", nullable: false), + SamplePercent = table.Column(type: "decimal(18,6)", nullable: false), + SampleQty = table.Column(type: "decimal(18,6)", nullable: false), + IsUsePercent = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_AQL", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Area", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + AreaType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + IsFunctional = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Area", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Bom", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Product = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Component = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ComponentUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ComponentQty = table.Column(type: "decimal(18,6)", nullable: false), + BeginTime = table.Column(type: "datetime2", nullable: true), + EndTime = table.Column(type: "datetime2", nullable: true), + ERPOp = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Layer = table.Column(type: "int", maxLength: 64, nullable: false, defaultValue: 1), + MFGOp = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DistributionType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TruncType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + PlannedSplitRule = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Bom", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Calendar", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Module = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BeginTime = table.Column(type: "datetime2", nullable: true), + EndTime = table.Column(type: "datetime2", nullable: true), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Calendar", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Category", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Category", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Currency", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + IsBasicCurrency = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Currency", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_CurrencyExchange", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CurrencyId = table.Column(type: "uniqueidentifier", nullable: false), + BasicCurrencyId = table.Column(type: "uniqueidentifier", nullable: false), + Rate = table.Column(type: "decimal(18,6)", nullable: false), + EfficetiveTime = table.Column(type: "datetime2", nullable: false), + ExpireTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_CurrencyExchange", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Customer", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ShortName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Address = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Country = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + City = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Phone = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Fax = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PostID = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Contacts = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Currency = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsActive = table.Column(type: "bit", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Customer", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_CustomerAddress", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Address = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Contact = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + City = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Desc = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_CustomerAddress", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_CustomerItem", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CustomerItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Version = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + CustomerPackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CustomerPackQty = table.Column(type: "decimal(18,6)", nullable: false), + BeginTime = table.Column(type: "datetime2", nullable: true), + EndTime = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_CustomerItem", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Dict", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Dict", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Dock", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DefaultLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Dock", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_DocumentSetting", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + TransactionType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + NumberPrefix = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + NumberFormat = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + NumberSerialLength = table.Column(type: "int", nullable: false), + NumberSeparator = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_DocumentSetting", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_ErpLocation", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_ErpLocation", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_InterfaceCalendar", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Year = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Month = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + BeginTime = table.Column(type: "datetime2", nullable: false), + EndTime = table.Column(type: "datetime2", nullable: false), + ConvertToTime = table.Column(type: "datetime2", nullable: false), + Description = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_InterfaceCalendar", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_ItemBasic", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Desc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Desc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CanMake = table.Column(type: "bit", nullable: false), + CanBuy = table.Column(type: "bit", nullable: false), + CanOutsourcing = table.Column(type: "bit", nullable: false), + IsRecycled = table.Column(type: "bit", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Category = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Color = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Configuration = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BasicUom = table.Column(type: "nvarchar(max)", nullable: true), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + AbcClass = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Project = table.Column(type: "nvarchar(max)", nullable: true), + Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Eco = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Validity = table.Column(type: "int", nullable: false), + ValidityUnit = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ManageType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Elevel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsPhantom = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_ItemBasic", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_ItemCategory", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CategoryCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Value = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_ItemCategory", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_ItemGuideBook", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(max)", nullable: true), + Desc1 = table.Column(type: "nvarchar(max)", nullable: true), + Desc2 = table.Column(type: "nvarchar(max)", nullable: true), + Step = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + PictureBlobName = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_ItemGuideBook", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_ItemPack", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PackCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + PackName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PackType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + BasicUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Qty = table.Column(type: "decimal(18,6)", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_ItemPack", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_ItemQuality", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + InspectType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_ItemQuality", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_ItemSafetyStock", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StoreRelationType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StoreValue = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + MaxStock = table.Column(type: "decimal(18,6)", nullable: false), + MinStock = table.Column(type: "decimal(18,6)", nullable: false), + SafetyStock = table.Column(type: "decimal(18,6)", nullable: false), + FeedLine = table.Column(type: "decimal(18,6)", nullable: false), + FeedQty = table.Column(type: "decimal(18,6)", nullable: false), + FeedUM = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_ItemSafetyStock", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_ItemStoreRelation", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StoreRelationType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StoreValue = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + StoreUM = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + UmQty = table.Column(type: "decimal(18,6)", nullable: false), + AltUm = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AltUmQty = table.Column(type: "decimal(18,6)", nullable: false), + PramaryUM = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + IsFixed = table.Column(type: "bit", nullable: false), + MultiLoc = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_ItemStoreRelation", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Location", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ErpLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + AreaCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ShelfCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RowCode = table.Column(type: "int", nullable: false, defaultValue: 1), + ColumnCode = table.Column(type: "int", nullable: false, defaultValue: 1), + DefaultInventoryStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + PickPriority = table.Column(type: "int", nullable: false, defaultValue: 0), + PickOrder = table.Column(type: "int", nullable: false, defaultValue: 0), + EnableMixItem = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableMixLot = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableMixStatus = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableNegative = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableKeepZero = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableOpportunityCount = table.Column(type: "bit", nullable: false, defaultValue: true), + EnablePick = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableOverPick = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableWholeStore = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableBreakStore = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableShip = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableReceive = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableReturnToSupplier = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableReturnFromCustomer = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableSplitBox = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableSplitPallet = table.Column(type: "bit", nullable: false, defaultValue: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Location", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_LocationGroup", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + AreaCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + GroupType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + DefaultInventoryStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + PickPriority = table.Column(type: "int", nullable: false, defaultValue: 0), + OverflowLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + EnableMixItem = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableMixLot = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableMixStatus = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableNegative = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableKeepZero = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableOpportunityCount = table.Column(type: "bit", nullable: false, defaultValue: true), + EnablePick = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableOverPick = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableWholeStore = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableBreakStore = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableShip = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableReceive = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableReturnToSupplier = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableReturnFromCustomer = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableSplitBox = table.Column(type: "bit", nullable: false, defaultValue: true), + EnableSplitPallet = table.Column(type: "bit", nullable: false, defaultValue: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_LocationGroup", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Machine", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProdLineId = table.Column(type: "uniqueidentifier", nullable: false), + WorkStationId = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Machine", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_PositionCode", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + PartCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_PositionCode", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_ProductionLine", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WorkshopCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RawLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RawLocationGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_ProductionLine", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_ProductionLineItem", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProdLineCode = table.Column(type: "nvarchar(450)", nullable: false), + ItemCode = table.Column(type: "nvarchar(450)", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_ProductionLineItem", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Project", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BeginTime = table.Column(type: "datetime2", nullable: true), + EndTime = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Project", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_PurchasePriceSheet", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + CurrencyId = table.Column(type: "uniqueidentifier", nullable: false), + MaterialPrice = table.Column(type: "decimal(18,6)", nullable: false), + ProductPrice = table.Column(type: "decimal(18,6)", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_PurchasePriceSheet", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_SalePriceSheet", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CustomerId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + CurrencyId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_SalePriceSheet", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Shift", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + BeginTime = table.Column(type: "datetime2", nullable: true), + EndTime = table.Column(type: "datetime2", nullable: true), + EndAtNextDay = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Shift", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_StdCostPriceSheet", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierId = table.Column(type: "uniqueidentifier", nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + CurrencyId = table.Column(type: "uniqueidentifier", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_StdCostPriceSheet", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Supplier", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ShortName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Address = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Country = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + City = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Phone = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Fax = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PostID = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Contacts = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Bank = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Currency = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + TaxRate = table.Column(type: "decimal(18,6)", nullable: false), + IsActive = table.Column(type: "bit", nullable: false, defaultValue: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Supplier", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_SupplierItem", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierSimpleName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierPackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierPackQty = table.Column(type: "decimal(18,6)", nullable: false), + QtyPerPallet = table.Column(type: "decimal(18,6)", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_SupplierItem", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_SupplierTimeWindow", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TimeSlot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Week = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_SupplierTimeWindow", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Team", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Members = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Team", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_TransactionType", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TransType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TransSubType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: false), + InLocationTypes = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + OutLocationTypes = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + InLocationAreas = table.Column(type: "nvarchar(max)", nullable: true), + OutLocationAreas = table.Column(type: "nvarchar(max)", nullable: true), + ItemStatuses = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemTypes = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + InInventoryStatuses = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + OutInventoryStatuses = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AutoSubmitRequest = table.Column(type: "bit", nullable: false), + AutoAgreeRequest = table.Column(type: "bit", nullable: false), + AutoHandleRequest = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + Enabled = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_TransactionType", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Uom", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Uom", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_Warehouse", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_Warehouse", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_WorkGroup", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_WorkGroup", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_WorkShop", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_WorkShop", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_WorkStation", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + ProductionLineCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RawLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_WorkStation", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Basedata_DictItem", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + MasterId = table.Column(type: "uniqueidentifier", nullable: false), + Code = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Value = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Description = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + Enabled = table.Column(type: "bit", nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Basedata_DictItem", x => x.Id); + table.ForeignKey( + name: "FK_Basedata_DictItem_Basedata_Dict_MasterId", + column: x => x.MasterId, + principalTable: "Basedata_Dict", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_AQL_SupplierCode_ItemCode_FloorQty", + table: "Basedata_AQL", + columns: new[] { "SupplierCode", "ItemCode", "FloorQty" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Area_Code", + table: "Basedata_Area", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Bom_Product_Component", + table: "Basedata_Bom", + columns: new[] { "Product", "Component" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Calendar_Module", + table: "Basedata_Calendar", + column: "Module", + unique: true, + filter: "[Module] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Category_Code", + table: "Basedata_Category", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Currency_Code", + table: "Basedata_Currency", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_CurrencyExchange_CurrencyId_BasicCurrencyId", + table: "Basedata_CurrencyExchange", + columns: new[] { "CurrencyId", "BasicCurrencyId" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Customer_Code", + table: "Basedata_Customer", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_CustomerAddress_Code_CustomerCode", + table: "Basedata_CustomerAddress", + columns: new[] { "Code", "CustomerCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_CustomerItem_CustomerCode_ItemCode", + table: "Basedata_CustomerItem", + columns: new[] { "CustomerCode", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Dict_Code", + table: "Basedata_Dict", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_DictItem_MasterId", + table: "Basedata_DictItem", + column: "MasterId"); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Dock_Code", + table: "Basedata_Dock", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_DocumentSetting_Code", + table: "Basedata_DocumentSetting", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_ErpLocation_Code", + table: "Basedata_ErpLocation", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_InterfaceCalendar_Code", + table: "Basedata_InterfaceCalendar", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_ItemBasic_Code", + table: "Basedata_ItemBasic", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_ItemCategory_CategoryCode_ItemCode", + table: "Basedata_ItemCategory", + columns: new[] { "CategoryCode", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_ItemGuideBook_ItemCode", + table: "Basedata_ItemGuideBook", + column: "ItemCode", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_ItemPack_ItemCode_PackCode", + table: "Basedata_ItemPack", + columns: new[] { "ItemCode", "PackCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_ItemQuality_ItemCode_SupplierCode", + table: "Basedata_ItemQuality", + columns: new[] { "ItemCode", "SupplierCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_ItemSafetyStock_ItemCode_WarehouseCode_StoreRelationType_StoreValue", + table: "Basedata_ItemSafetyStock", + columns: new[] { "ItemCode", "WarehouseCode", "StoreRelationType", "StoreValue" }, + unique: true, + filter: "[StoreValue] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_ItemStoreRelation_ItemCode_StoreRelationType_StoreValue", + table: "Basedata_ItemStoreRelation", + columns: new[] { "ItemCode", "StoreRelationType", "StoreValue" }, + unique: true, + filter: "[StoreValue] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Location_Code", + table: "Basedata_Location", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_LocationGroup_Code", + table: "Basedata_LocationGroup", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Machine_Code", + table: "Basedata_Machine", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_PositionCode_Code_PartCode_LocationCode", + table: "Basedata_PositionCode", + columns: new[] { "Code", "PartCode", "LocationCode" }, + unique: true, + filter: "[PartCode] IS NOT NULL AND [LocationCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_ProductionLine_Code", + table: "Basedata_ProductionLine", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_ProductionLineItem_ProdLineCode_ItemCode", + table: "Basedata_ProductionLineItem", + columns: new[] { "ProdLineCode", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Project_Code", + table: "Basedata_Project", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_PurchasePriceSheet_ItemCode", + table: "Basedata_PurchasePriceSheet", + column: "ItemCode", + unique: true, + filter: "[ItemCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_SalePriceSheet_Code_CustomerId", + table: "Basedata_SalePriceSheet", + columns: new[] { "Code", "CustomerId" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Shift_Code", + table: "Basedata_Shift", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_StdCostPriceSheet_Code_SupplierId", + table: "Basedata_StdCostPriceSheet", + columns: new[] { "Code", "SupplierId" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Supplier_Code", + table: "Basedata_Supplier", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_SupplierItem_SupplierCode_ItemCode", + table: "Basedata_SupplierItem", + columns: new[] { "SupplierCode", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_SupplierTimeWindow_SupplierCode_TimeSlot_Week", + table: "Basedata_SupplierTimeWindow", + columns: new[] { "SupplierCode", "TimeSlot", "Week" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Team_Code", + table: "Basedata_Team", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_TransactionType_TransType_TransSubType", + table: "Basedata_TransactionType", + columns: new[] { "TransType", "TransSubType" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Uom_Code", + table: "Basedata_Uom", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_Warehouse_Code", + table: "Basedata_Warehouse", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_WorkGroup_Code", + table: "Basedata_WorkGroup", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_WorkShop_Code", + table: "Basedata_WorkShop", + column: "Code", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Basedata_WorkStation_Code", + table: "Basedata_WorkStation", + column: "Code", + unique: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Basedata_AQL"); + + migrationBuilder.DropTable( + name: "Basedata_Area"); + + migrationBuilder.DropTable( + name: "Basedata_Bom"); + + migrationBuilder.DropTable( + name: "Basedata_Calendar"); + + migrationBuilder.DropTable( + name: "Basedata_Category"); + + migrationBuilder.DropTable( + name: "Basedata_Currency"); + + migrationBuilder.DropTable( + name: "Basedata_CurrencyExchange"); + + migrationBuilder.DropTable( + name: "Basedata_Customer"); + + migrationBuilder.DropTable( + name: "Basedata_CustomerAddress"); + + migrationBuilder.DropTable( + name: "Basedata_CustomerItem"); + + migrationBuilder.DropTable( + name: "Basedata_DictItem"); + + migrationBuilder.DropTable( + name: "Basedata_Dock"); + + migrationBuilder.DropTable( + name: "Basedata_DocumentSetting"); + + migrationBuilder.DropTable( + name: "Basedata_ErpLocation"); + + migrationBuilder.DropTable( + name: "Basedata_InterfaceCalendar"); + + migrationBuilder.DropTable( + name: "Basedata_ItemBasic"); + + migrationBuilder.DropTable( + name: "Basedata_ItemCategory"); + + migrationBuilder.DropTable( + name: "Basedata_ItemGuideBook"); + + migrationBuilder.DropTable( + name: "Basedata_ItemPack"); + + migrationBuilder.DropTable( + name: "Basedata_ItemQuality"); + + migrationBuilder.DropTable( + name: "Basedata_ItemSafetyStock"); + + migrationBuilder.DropTable( + name: "Basedata_ItemStoreRelation"); + + migrationBuilder.DropTable( + name: "Basedata_Location"); + + migrationBuilder.DropTable( + name: "Basedata_LocationGroup"); + + migrationBuilder.DropTable( + name: "Basedata_Machine"); + + migrationBuilder.DropTable( + name: "Basedata_PositionCode"); + + migrationBuilder.DropTable( + name: "Basedata_ProductionLine"); + + migrationBuilder.DropTable( + name: "Basedata_ProductionLineItem"); + + migrationBuilder.DropTable( + name: "Basedata_Project"); + + migrationBuilder.DropTable( + name: "Basedata_PurchasePriceSheet"); + + migrationBuilder.DropTable( + name: "Basedata_SalePriceSheet"); + + migrationBuilder.DropTable( + name: "Basedata_Shift"); + + migrationBuilder.DropTable( + name: "Basedata_StdCostPriceSheet"); + + migrationBuilder.DropTable( + name: "Basedata_Supplier"); + + migrationBuilder.DropTable( + name: "Basedata_SupplierItem"); + + migrationBuilder.DropTable( + name: "Basedata_SupplierTimeWindow"); + + migrationBuilder.DropTable( + name: "Basedata_Team"); + + migrationBuilder.DropTable( + name: "Basedata_TransactionType"); + + migrationBuilder.DropTable( + name: "Basedata_Uom"); + + migrationBuilder.DropTable( + name: "Basedata_Warehouse"); + + migrationBuilder.DropTable( + name: "Basedata_WorkGroup"); + + migrationBuilder.DropTable( + name: "Basedata_WorkShop"); + + migrationBuilder.DropTable( + name: "Basedata_WorkStation"); + + migrationBuilder.DropTable( + name: "Basedata_Dict"); + } + } +} diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/BasedataDbContextModelSnapshot.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/BasedataDbContextModelSnapshot.cs index 83e4e06b7..e4f0ce499 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/BasedataDbContextModelSnapshot.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.EntityFrameworkCore/Migrations/BasedataDbContextModelSnapshot.cs @@ -2320,8 +2320,9 @@ namespace Win_in.Sfs.Basedata.Migrations b.HasKey("Id"); - b.HasIndex("Code") - .IsUnique(); + b.HasIndex("Code", "PartCode", "LocationCode") + .IsUnique() + .HasFilter("[PartCode] IS NOT NULL AND [LocationCode] IS NOT NULL"); b.ToTable("Basedata_PositionCode", (string)null); }); @@ -2540,11 +2541,6 @@ namespace Win_in.Sfs.Basedata.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); - b.Property("Code") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - b.Property("ConcurrencyStamp") .IsConcurrencyToken() .HasMaxLength(40) @@ -2560,7 +2556,6 @@ namespace Win_in.Sfs.Basedata.Migrations .HasColumnName("CreatorId"); b.Property("CurrencyId") - .HasMaxLength(64) .HasColumnType("uniqueidentifier"); b.Property("Description") @@ -2571,6 +2566,10 @@ namespace Win_in.Sfs.Basedata.Migrations .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); + b.Property("ItemCode") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + b.Property("LastModificationTime") .HasColumnType("datetime2") .HasColumnName("LastModificationTime"); @@ -2579,27 +2578,26 @@ namespace Win_in.Sfs.Basedata.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); - b.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); + b.Property("MaterialPrice") + .HasColumnType("decimal(18,6)"); + + b.Property("ProductPrice") + .HasColumnType("decimal(18,6)"); b.Property("Remark") .HasMaxLength(3072) .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); - b.Property("SupplierId") - .HasMaxLength(64) - .HasColumnType("uniqueidentifier"); - b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.HasKey("Id"); - b.HasIndex("Code") - .IsUnique(); + b.HasIndex("ItemCode") + .IsUnique() + .HasFilter("[ItemCode] IS NOT NULL"); b.ToTable("Basedata_PurchasePriceSheet", (string)null); }); diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/SplitPackings/SplitPackingRecAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/SplitPackings/SplitPackingRecAppService.cs index 48086c839..a4ca4913e 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/SplitPackings/SplitPackingRecAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/SplitPackings/SplitPackingRecAppService.cs @@ -16,7 +16,7 @@ namespace Win_in.Sfs.Wms.Store.SplitPackings; /// 拆箱记录 /// //[Authorize] -//[Route($"{StoreConsts.RootPath}split-packing-rec")] +[Route($"{StoreConsts.RootPath}split-packing-rec")] public class SplitPackingRecAppService : SfsStoreAppServiceBase diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Commons/CommonHelper.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Commons/CommonHelper.cs new file mode 100644 index 000000000..5d613d7db --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Commons/CommonHelper.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Newtonsoft.Json; + +namespace Win_in.Sfs.Wms.Store.Commons; +public sealed class CommonHelper +{ + /// + /// 克隆对象 + /// + /// + /// + /// + public static T CloneObj(T sourceObj) + { + string json = JsonConvert.SerializeObject(sourceObj); + var ret = JsonConvert.DeserializeObject(json); + return ret; + } +} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Commons/ExtMethod.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Commons/ExtMethod.cs new file mode 100644 index 000000000..420078787 --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Commons/ExtMethod.cs @@ -0,0 +1,368 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Reflection; +using System.Text; + +namespace Win_in.Sfs.Wms.Store.Commons; +public static class ExtMethod +{ + #region string + public static int? TryToInt(this string p_str) + { + int resu; + bool isSucc = int.TryParse(p_str, out resu); + if (isSucc) + { + return resu; + } + else + { + return null; + } + } + + public static int TryToIntZero(this string p_str) + { + return p_str.TryToInt() ?? 0; + } + + + public static double? TryToDouble(this string p_str) + { + double resu; + bool isSucc = double.TryParse(p_str, out resu); + if (isSucc) + { + return resu; + } + else + { + return null; + } + } + + public static double TryToDoubleZero(this string p_str) + { + return p_str.TryToDouble() ?? 0; + } + + public static DateTime? TryToDateTime(this string p_str) + { + if (p_str == null) + { + return null; + } + string str = p_str?.ToString(); + DateTime resu; + bool isSucc = DateTime.TryParse(str, out resu); + if (isSucc) + { + return resu; + } + else + { + return null; + } + } + + public static bool? TryToBool(this string p_str) + { + if (p_str == null) + { + return null; + } + bool ret; + bool isSucc = Boolean.TryParse(p_str, out ret); + if (isSucc) + { + return ret; + } + else + { + return null; + } + + } + + public static decimal? TryToDecimal(this string p_str) + { + if (p_str == null) + { + return null; + } + decimal ret; + bool isSucc = Decimal.TryParse(p_str, out ret); + if (isSucc) + { + return ret; + } + else + { + return null; + } + } + + public static decimal TryToDecimalZero(this string p_str) + { + return p_str.TryToDecimal() ?? 0.0M; + } + + #endregion + + #region object + public static int? TryToInt(this object p_obj) + { + if (p_obj == null) + { + return null; + } + string str = p_obj?.ToString(); + int resu; + bool isSucc = int.TryParse(str, out resu); + if (isSucc) + { + return resu; + } + else + { + return null; + } + } + + public static int TryToIntZero(this object p_obj) + { + int? ret = TryToInt(p_obj); + return ret ?? 0; + } + + public static double? TryToDouble(this object p_obj) + { + if (p_obj == null) + { + return null; + } + string str = p_obj?.ToString(); + double resu; + bool isSucc = double.TryParse(str, out resu); + if (isSucc) + { + return resu; + } + else + { + return null; + } + } + + public static double TryToDoubleZero(this object p_obj) + { + return p_obj.TryToDouble() ?? 0; + } + + public static DateTime? TryToDateTime(this object p_obj) + { + if (p_obj == null) + { + return null; + } + string str = p_obj?.ToString(); + DateTime resu; + bool isSucc = DateTime.TryParse(str, out resu); + if (isSucc) + { + return resu; + } + else + { + return null; + } + } + + public static DateTime TryToDateTime1900(this object p_obj) + { + var ret = p_obj.TryToDateTime() ?? Convert.ToDateTime("1900-01-01"); + return ret; + } + public static bool? TryToBool(this object p_obj) + { + if (p_obj == null) + { + return null; + } + string str = p_obj?.ToString(); + bool resu; + bool isSucc = Boolean.TryParse(str, out resu); + if (isSucc) + { + return resu; + } + else + { + return null; + } + } + + public static decimal? TryToDecimal(this object p_obj) + { + if (p_obj == null) + { + return null; + } + string str = p_obj?.ToString(); + decimal ret; + bool isSucc = Decimal.TryParse(str, out ret); + if (isSucc) + { + return ret; + } + else + { + return null; + } + } + + public static decimal TryToDecimalZero(this object p_obj) + { + return p_obj.TryToDecimal() ?? 0.0M; + } + #endregion + + public static bool HasValue(this string p_str) + { + return string.IsNullOrEmpty(p_str?.Trim()) ? false : true; + } + + public static bool IsNullOrEmpty2(this string p_str) + { + return string.IsNullOrEmpty(p_str?.Trim()) ? true : false; + } + + public static string TryToEmptyIfNull(this string p_str) + { + if (p_str == null) + { + return string.Empty; + } + else + { + return p_str; + } + } + + public static string Left(this string str, int len) + { + string result = str.Substring(0, len); + return result; + } + + public static string Right(this string str, int len) + { + if (str.Length < len) + { + return str; + } + string result = str.Substring(str.Length - len, len); + return result; + } + + public static object IntDBNull(this object p_obj) + { + if (p_obj == null) + { + return DBNull.Value; + } + string str = p_obj?.ToString(); + int resu; + bool isSucc = int.TryParse(str, out resu); + if (isSucc) + { + return resu; + } + else + { + return DBNull.Value; + } + } + + public static object DoubleDBNull(this object p_obj) + { + if (p_obj == null) + { + return DBNull.Value; + } + string str = p_obj?.ToString(); + double resu; + bool isSucc = double.TryParse(str, out resu); + if (isSucc) + { + return resu; + } + else + { + return DBNull.Value; + } + } + + public static object DateTimeDBNull(this object p_obj) + { + if (p_obj == null) + { + return DBNull.Value; + } + string str = p_obj?.ToString(); + DateTime resu; + bool isSucc = DateTime.TryParse(str, out resu); + if (isSucc) + { + return resu; + } + else + { + return DBNull.Value; + } + } + + /// + /// 返回枚举项的描述信息。 + /// + /// 要获取描述信息的枚举项。 + /// 枚举想的描述信息。 + /// + public static string GetDescription(this Enum value, bool isTop = false) + { + Type enumType = value.GetType(); + DescriptionAttribute attr = null; + if (isTop) + { + attr = (DescriptionAttribute)Attribute.GetCustomAttribute(enumType, typeof(DescriptionAttribute)); + } + else + { + // 获取枚举常数名称。 + string name = Enum.GetName(enumType, value); + if (name != null) + { + // 获取枚举字段。 + FieldInfo fieldInfo = enumType.GetField(name); + if (fieldInfo != null) + { + // 获取描述的属性。 + attr = Attribute.GetCustomAttribute(fieldInfo, typeof(DescriptionAttribute), false) as DescriptionAttribute; + } + } + } + if (attr != null && !string.IsNullOrEmpty(attr.Description)) + { + return attr.Description; + } + else + { + return string.Empty; + } + } + + +} + diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Win_in.Sfs.Wms.Store.Domain.Shared.csproj b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Win_in.Sfs.Wms.Store.Domain.Shared.csproj index 2e780ff7b..e21cbe9a6 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Win_in.Sfs.Wms.Store.Domain.Shared.csproj +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/Win_in.Sfs.Wms.Store.Domain.Shared.csproj @@ -9,6 +9,7 @@ + diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRec.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRec.cs index 5f2c2f7fe..ba09ac382 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRec.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRec.cs @@ -127,17 +127,17 @@ public class SplitPackingRec : SfsAggregateRootBase public string ArrivalNoticNumber { get; set; } /// - /// 任务单 + /// 任务单【no】 /// public string TaskOrderNumber { get; set; } /// - /// 收货记录单 + /// 收货记录单【no】 /// public string ReceiptRecNumber { get; set; } /// - /// 上架单 + /// 上架单【no】 /// public string PutOnShelfNumber { get; set; } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRecManager.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRecManager.cs index a608676f9..7fb3c45d0 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRecManager.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRecManager.cs @@ -8,6 +8,7 @@ using Volo.Abp; using Volo.Abp.Domain.Services; using Volo.Abp.ObjectMapping; using Win_in.Sfs.Label.Domain; +using Win_in.Sfs.Wms.Store.Commons; using Win_in.Sfs.Wms.Store.Domain; using Win_in.Sfs.Wms.Store.Domain.Shared.SplitPackings; @@ -16,13 +17,13 @@ public class SplitPackingRecManager : DomainService, ISplitPackingRecManager { private readonly ISplitPackingRecRepository _repository; private readonly IObjectMapper _autoMapper; - private readonly ILabelDefinitionManager _labelDefinitionManager; + //private readonly ILabelDefinitionManager _labelDefinitionManager; - public SplitPackingRecManager(ISplitPackingRecRepository repository, IObjectMapper autoMapper, ILabelDefinitionManager labelDefinitionManager) + public SplitPackingRecManager(ISplitPackingRecRepository repository, IObjectMapper autoMapper) //, ILabelDefinitionManager labelDefinitionManager { _repository = repository; _autoMapper = autoMapper; - _labelDefinitionManager = labelDefinitionManager; + //_labelDefinitionManager = labelDefinitionManager; } public async Task BatchInsertAsync(List input) @@ -30,36 +31,54 @@ public class SplitPackingRecManager : DomainService, ISplitPackingRecManager var query = await _repository.GetQueryableAsync().ConfigureAwait(false); foreach (SplitPackingRec item in input) { - if (item.OprType == OprTypeEnum.Other) //入库等 + #region 校验 + if (item.OprType == OprTypeEnum.SplitBox || item.OprType == OprTypeEnum.MergeBox) //拆箱或合箱 { - if (item.FromPackingCode != item.ToPackingCode) + if (item.FromPackingCode == item.ToPackingCode) { - throw new UserFriendlyException("操作类型不是拆箱或合箱状态,源箱码和目标箱码必须相同!"); + throw new UserFriendlyException("操作类型是拆箱或合箱状态,源箱码和目标箱码不能相同!"); } - - throw new UserFriendlyException("操作类型不是拆箱或合箱状态,源箱码和目标箱码必须相等!"); } - else //拆箱或合箱 + else //入库 { - if (item.FromPackingCode == item.ToPackingCode) + if (item.FromPackingCode != item.ToPackingCode) { - throw new UserFriendlyException("操作类型是拆箱或合箱状态,源箱码和目标箱码不能相同!"); + throw new UserFriendlyException("操作类型不是拆箱或合箱状态,源箱码和目标箱码必须相同!"); + } + if (item.FromTopPackingCode.IsNullOrEmpty()) + { + item.FromTopPackingCode = item.FromPackingCode; + } + if (item.ToTopPackingCode.IsNullOrEmpty()) + { + item.ToTopPackingCode = item.ToPackingCode; } } + #endregion + if (item.OprType == OprTypeEnum.SplitBox || item.OprType == OprTypeEnum.MergeBox) { - if (string.IsNullOrEmpty(item.ToPackingCode)) + //设置顶级箱码 + item.FromTopPackingCode = GetTopPackingCode(query, item.FromPackingCode); + item.ToTopPackingCode = GetTopPackingCode(query, item.ToPackingCode); + if (item.FromTopPackingCode.IsNullOrEmpty()) { - item.ToPackingCode = await _labelDefinitionManager.GenerateAsync(item.LabelType.ToString(), DateTime.Now).ConfigureAwait(false); + item.FromTopPackingCode = item.FromPackingCode; } - string toPackCode = item.ToPackingCode; + if (item.ToTopPackingCode.IsNullOrEmpty()) + { + item.ToTopPackingCode = item.FromTopPackingCode; + } + //设置六个单据号 + SetBillNumber(query, item); //拆箱时,如果目标箱不存在,插入目标箱(两个箱码相同) - var toHis = await query.FirstOrDefaultAsync(itm => itm.FromPackingCode == toPackCode).ConfigureAwait(false); + string toPackCode = item.ToPackingCode; + var toHis = await query.Where(itm => itm.FromPackingCode == toPackCode && itm.ToPackingCode == toPackCode).OrderBy(itm => itm.CreationTime).FirstOrDefaultAsync().ConfigureAwait(false); if (toHis == null) { - SplitPackingRec newObj = new SplitPackingRec(); - _autoMapper.Map(item, newObj); - newObj.SetId(Guid.NewGuid()); + + SplitPackingRec newObj = CommonHelper.CloneObj(item); + newObj.SetId(GuidGenerator.Create()); newObj.OprType = OprTypeEnum.Other; newObj.FromPackingCode = newObj.ToPackingCode; newObj.FromTopPackingCode = newObj.ToTopPackingCode; @@ -67,15 +86,19 @@ public class SplitPackingRecManager : DomainService, ISplitPackingRecManager newObj.FromUom = newObj.ToUom; newObj.FromQty = newObj.ToQty; newObj.FromLot = newObj.ToLot; - await _repository.InsertAsync(newObj).ConfigureAwait(false); + var res = await _repository.InsertAsync(newObj, true).ConfigureAwait(false); } + SplitPackingRec newEntity = CommonHelper.CloneObj(item); + newEntity.SetId(GuidGenerator.Create()); + var ret = await _repository.InsertAsync(newEntity, true).ConfigureAwait(false); } - - item.FromTopPackingCode = GetTopPackingCode(query, item.FromPackingCode); - item.ToTopPackingCode = GetTopPackingCode(query, item.ToPackingCode); - SetBillNumber(query, item); - } - await _repository.InsertManyAsync(input).ConfigureAwait(false); + else + { + SplitPackingRec newEntity = CommonHelper.CloneObj(item); + newEntity.SetId(GuidGenerator.Create()); + var ret = await _repository.InsertAsync(newEntity, true).ConfigureAwait(false); + } + } //foreach return true; } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20221024063735_ExchangeData.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20221024063735_ExchangeData.Designer.cs deleted file mode 100644 index 6873fabf7..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20221024063735_ExchangeData.Designer.cs +++ /dev/null @@ -1,17471 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20221024063735_ExchangeData")] - partial class ExchangeData - { - protected override void BuildTargetModel(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.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - 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("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_BackFlushNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - 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("Lot") - .HasColumnType("nvarchar(450)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountAdjustNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_CountNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_CountPlan"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("DockCode") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_CustomerAsn"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_DeliverNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_DeliverPlan"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverType") - .HasColumnType("int"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ExpiredTime", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_InspectNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_InspectRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveUom") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_IsolationNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_IssueNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RawLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_PreparationPlan"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Company") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Company"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PRRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_ProductionPlan"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .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("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_PutawayNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayJobType") - .HasColumnType("int"); - - b.Property("PutawayType") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_PutawayRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "Company", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_SaleOrder"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_ScrapNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_SupplierAsn"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NeedInTransitLocation") - .HasColumnType("bit"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_TransferNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InTransitLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NeedInTransitLocation") - .HasColumnType("bit"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_TransferRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InTransitLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Company", "Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .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") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number", "Company") - .IsUnique(); - - b.ToTable("Store_WorkOrder"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "AuditCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasColumnType("nvarchar(max)"); - - b1.Property("Operator") - .HasColumnType("nvarchar(max)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "FirstCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasColumnType("nvarchar(max)"); - - b1.Property("Operator") - .HasColumnType("nvarchar(max)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "RepeatCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasColumnType("nvarchar(max)"); - - b1.Property("Operator") - .HasColumnType("nvarchar(max)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.Navigation("AuditCount"); - - b.Navigation("Batch"); - - b.Navigation("FirstCount"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RepeatCount"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "AuditCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasColumnType("nvarchar(max)"); - - b1.Property("Operator") - .HasColumnType("nvarchar(max)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "FirstCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasColumnType("nvarchar(max)"); - - b1.Property("Operator") - .HasColumnType("nvarchar(max)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "RepeatCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasColumnType("nvarchar(max)"); - - b1.Property("Operator") - .HasColumnType("nvarchar(max)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.Navigation("AuditCount"); - - b.Navigation("Batch"); - - b.Navigation("FirstCount"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RepeatCount"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("CustomerAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.Property("Phone") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CustomerAsnId"); - - b1.ToTable("Store_CustomerAsn"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CustomerAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CustomerAsnId"); - - b1.ToTable("Store_CustomerAsn"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnId"); - }); - - b.Navigation("Contacts"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("InspectAbnormalNoteDetailId", "PhotoID"); - - b1.ToTable("Store_InspectAbnormalNoteDetailPhoto"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Photos"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.Property("Phone") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("InspectNoteDetailId", "PhotoID"); - - b1.ToTable("Store_InspectNoteDetailPhoto"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InspectUser"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Photos"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.Property("Phone") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InspectUser"); - - b.Navigation("Item"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "FromQty", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ToQty", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("FromQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - - b.Navigation("ToQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "FromQty", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ToQty", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("FromQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - - b.Navigation("ToQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductL7PartsNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductL7PartsNoteDetailId"); - - b1.ToTable("Store_ProductL7PartsNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductL7PartsNoteDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "RawLocation", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("RawLocation"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "RawLocation", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("RawLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PlanQty", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("PlanQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("PurchaseOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.Property("Phone") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseOrderId"); - - b1.ToTable("Store_PurchaseOrder"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("ReceiptAbnormalNoteDetailId", "PhotoID"); - - b1.ToTable("Store_ReceiptAbnormalNotePhoto"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Photos"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("SaleOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.Property("Phone") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SaleOrderId"); - - b1.ToTable("Store_SaleOrder"); - - b1.WithOwner() - .HasForeignKey("SaleOrderId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "CustomerPack", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.Navigation("CustomerPack"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("SupplierAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.Property("Phone") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SupplierAsnId"); - - b1.ToTable("Store_SupplierAsn"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasColumnType("nvarchar(max)"); - - b1.Property("ErpCode") - .HasColumnType("nvarchar(max)"); - - b1.Property("Group") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasColumnType("nvarchar(max)"); - - b1.Property("Desc2") - .HasColumnType("nvarchar(max)"); - - b1.Property("Name") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RawQty", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("RawQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20221024063735_ExchangeData.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20221024063735_ExchangeData.cs deleted file mode 100644 index 41588d92f..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20221024063735_ExchangeData.cs +++ /dev/null @@ -1,5641 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class ExchangeData : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Store_PurchaseReceiptRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - TruckNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DockCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - TimeWindow = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: false), - PlanArriveDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PurchaseReceiptRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_BackFlushNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: false), - Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductionPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ProductReceiptNumber = table.Column(type: "nvarchar(max)", nullable: true), - ProductRecycleNumber = table.Column(type: "nvarchar(max)", nullable: true), - JobNumber = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_BackFlushNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ContainerBindNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - BindType = table.Column(type: "int", nullable: false), - BindTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ContainerBindNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_CountAdjustNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CountNoteNumber = table.Column(type: "nvarchar(max)", nullable: true), - CountPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CountAdjustNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_CountNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CountPlanNumber = table.Column(type: "nvarchar(max)", nullable: true), - Type = table.Column(type: "int", nullable: false), - Stage = table.Column(type: "int", nullable: false), - Description = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - Adjusted = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CountNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_CountPlan", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Type = table.Column(type: "int", nullable: false), - Stage = table.Column(type: "int", nullable: false, defaultValue: 1), - Description = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BeginTime = table.Column(type: "datetime2", nullable: false), - EndTime = table.Column(type: "datetime2", nullable: false), - PlanTime = table.Column(type: "datetime2", nullable: false), - CountMethod = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CountPlan", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_CustomerAsn", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Status = table.Column(type: "int", nullable: false), - Contacts_Name = table.Column(type: "nvarchar(max)", nullable: true), - Contacts_Phone = table.Column(type: "nvarchar(max)", nullable: true), - Contacts_Email = table.Column(type: "nvarchar(max)", nullable: true), - DockCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - TimeRange_BeginTime = table.Column(type: "datetime2", nullable: true), - TimeRange_EndTime = table.Column(type: "datetime2", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CustomerAsn", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_CustomerReturnNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReturnTime = table.Column(type: "datetime2", nullable: false), - Customer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CustomerReturnNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_DeliverNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Customer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CustomerAddressCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_DeliverNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_DeliverPlan", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PlanDate = table.Column(type: "datetime2", nullable: false), - PlanTime = table.Column(type: "datetime2", nullable: false), - CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CustomerAddressCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Project = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_DeliverPlan", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_DeliverRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DeliverPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DeliverType = table.Column(type: "int", nullable: false), - CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CustomerAddressCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_DeliverRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ExchangeData", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Number = table.Column(type: "bigint", nullable: false) - .Annotation("SqlServer:Identity", "1, 1"), - DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DataAction = table.Column(type: "int", nullable: false), - EffectiveDate = table.Column(type: "datetime2(7)", nullable: false), - Status = table.Column(type: "int", nullable: false), - DataIdentityCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - DataContent = table.Column(type: "nvarchar(max)", nullable: true), - DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ReadTime = table.Column(type: "datetime2", nullable: true), - Reader = table.Column(type: "nvarchar(max)", nullable: true), - SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WriteTime = table.Column(type: "datetime2", nullable: false), - Writer = table.Column(type: "nvarchar(max)", nullable: true), - ErrorCode = table.Column(type: "int", nullable: false), - ErrorMessage = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - RetryTimes = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ExchangeData", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectAbnormalNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - InspectNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectAbnormalNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - InspectNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - NextAction = table.Column(type: "int", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_InventoryTransferNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TransferType = table.Column(type: "int", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InventoryTransferNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_IsolationNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_IsolationNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_IssueNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_IssueNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ItemTransformNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobNumber = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ItemTransformNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ItemTransformRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ItemTransformRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_JisDeliverNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Customer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CustomerAddressCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ProjectCode = table.Column(type: "nvarchar(max)", nullable: true), - DeliverTime = table.Column(type: "datetime2", nullable: false), - ContainerQty = table.Column(type: "decimal(18,6)", nullable: false), - ItemQty = table.Column(type: "decimal(18,6)", nullable: false), - TotalPackCapacity = table.Column(type: "nvarchar(max)", nullable: true), - ArrivalTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_JisDeliverNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_JisProductReceiptNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReceiptType = table.Column(type: "int", nullable: false), - SourceNumber = table.Column(type: "nvarchar(max)", nullable: true), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductionPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationCode = table.Column(type: "nvarchar(max)", nullable: true), - RawLocation = table.Column(type: "nvarchar(max)", nullable: true), - ProdLine = table.Column(type: "nvarchar(max)", nullable: true), - WorkShop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: false), - ContainerQty = table.Column(type: "decimal(18,6)", nullable: false), - ItemQty = table.Column(type: "decimal(18,6)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_JisProductReceiptNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_MaterialRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PreparationPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false, defaultValue: 1) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_MaterialRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_OfflineSettlementNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(max)", nullable: true), - ProductReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_OfflineSettlementNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_PreparationPlan", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ProductionPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Team = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PlanDate = table.Column(type: "datetime2", nullable: false), - PlanTime = table.Column(type: "datetime2", nullable: false), - Status = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PreparationPlan", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductionPlan", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Team = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - PlanDate = table.Column(type: "datetime2", nullable: false), - PlanTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductionPlan", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductionReturnNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductionReturnRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReturnTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductionReturnNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductionReturnRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false, defaultValue: 1) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductionReturnRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductL7PartsNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - ProductNo = table.Column(type: "nvarchar(max)", nullable: true), - Program = table.Column(type: "nvarchar(max)", nullable: true), - Position = table.Column(type: "nvarchar(max)", nullable: true), - FATA = table.Column(type: "nvarchar(max)", nullable: true), - Configuration = table.Column(type: "nvarchar(max)", nullable: true), - ContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - State = table.Column(type: "int", nullable: false), - CreateDate = table.Column(type: "datetime2", nullable: false), - Status = table.Column(type: "int", nullable: false), - ReceiptNumber = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductL7PartsNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductReceiptNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReceiptType = table.Column(type: "int", nullable: false), - SourceNumber = table.Column(type: "nvarchar(max)", nullable: true), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductionPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WorkShop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductReceiptNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductReceiptRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ProductionPlanNumber = table.Column(type: "nvarchar(max)", nullable: true), - Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Team = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - PlanDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductReceiptRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductRecycleNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PRRequestNumber = table.Column(type: "nvarchar(max)", nullable: true), - RecycleTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductRecycleNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductRecycleRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductRecycleRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_PurchaseOrder", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - OrderStatus = table.Column(type: "int", nullable: false), - IsConsignment = table.Column(type: "bit", nullable: false, defaultValue: false), - OrderDate = table.Column(type: "datetime2", nullable: false), - DueDate = table.Column(type: "datetime2", nullable: false), - Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - TaxRate = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - Contacts_Name = table.Column(type: "nvarchar(max)", nullable: true), - Contacts_Phone = table.Column(type: "nvarchar(max)", nullable: true), - Contacts_Email = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PurchaseOrder", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_PurchaseReceiptNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ReceiveTime = table.Column(type: "datetime2", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Type = table.Column(type: "int", nullable: false), - Status = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PurchaseReceiptNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_PurchaseReturnNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PurchaseReturnRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReturnReason = table.Column(type: "nvarchar(max)", nullable: true), - ReturnTime = table.Column(type: "datetime2", nullable: false), - ReturnType = table.Column(type: "int", nullable: false, defaultValue: 2), - Status = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PurchaseReturnNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_PurchaseReturnRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReturnTime = table.Column(type: "datetime2", nullable: false), - ReturnType = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PurchaseReturnRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_PutawayNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - InspectNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PutawayNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_PutawayRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PutawayJobType = table.Column(type: "int", nullable: false), - SupplierCode = table.Column(type: "nvarchar(max)", nullable: true), - InspectNumber = table.Column(type: "nvarchar(max)", nullable: true), - ReceiptNumber = table.Column(type: "nvarchar(max)", nullable: true), - PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(max)", nullable: true), - AsnNumber = table.Column(type: "nvarchar(max)", nullable: true), - RpNumber = table.Column(type: "nvarchar(max)", nullable: true), - PoNumber = table.Column(type: "nvarchar(max)", nullable: true), - ProductReceiptNumber = table.Column(type: "nvarchar(max)", nullable: true), - PutawayType = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PutawayRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ReceiptAbnormalNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ReceiptAbnormalNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_RecycledMaterialReceiptNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_RecycledMaterialReceiptNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_SaleOrder", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SoType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SoStatus = table.Column(type: "int", nullable: false), - OrderDate = table.Column(type: "datetime2", nullable: false), - DueDate = table.Column(type: "datetime2", nullable: false), - Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - TaxRate = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - Contacts_Name = table.Column(type: "nvarchar(max)", nullable: true), - Contacts_Phone = table.Column(type: "nvarchar(max)", nullable: true), - Contacts_Email = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_SaleOrder", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ScrapNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ScrapNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_SupplierAsn", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Status = table.Column(type: "int", nullable: false), - Contacts_Name = table.Column(type: "nvarchar(max)", nullable: true), - Contacts_Phone = table.Column(type: "nvarchar(max)", nullable: true), - Contacts_Email = table.Column(type: "nvarchar(max)", nullable: true), - TruckNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DockCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ShipDate = table.Column(type: "datetime2", nullable: false), - DueDate = table.Column(type: "datetime2", nullable: false), - TimeWindow = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - PlanArriveDate = table.Column(type: "datetime2", nullable: false), - Ctype = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_SupplierAsn", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_TransferNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RequestNumber = table.Column(type: "nvarchar(max)", nullable: true), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - TransferType = table.Column(type: "int", nullable: false), - NeedInTransitLocation = table.Column(type: "bit", nullable: false), - Adjusted = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_TransferNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_TransferRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - TransferType = table.Column(type: "int", nullable: false), - NeedInTransitLocation = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_TransferRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_UnplannedIssueNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BuildDate = table.Column(type: "datetime2", nullable: false), - UnplannedIssueRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_UnplannedIssueNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_UnplannedIssueRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BuildDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_UnplannedIssueRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_UnplannedReceiptNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BuildDate = table.Column(type: "datetime2", nullable: false), - UnplannedReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_UnplannedReceiptNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_UnplannedReceiptRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BuildDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_UnplannedReceiptRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_WarehouseTransferNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_WarehouseTransferNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_WorkOrder", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - WorkOrderId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - EffectiveDate = table.Column(type: "datetime2", nullable: false), - WorkStation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WoStatus = table.Column(type: "int", nullable: false), - Op = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Type = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Company = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_WorkOrder", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_PurchaseReceiptRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - ConvertRate = table.Column(type: "decimal(18,6)", nullable: false), - ArriveDate = table.Column(type: "datetime2", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PurchaseReceiptRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_PurchaseReceiptRequestDetail_Store_PurchaseReceiptRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_PurchaseReceiptRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_BackFlushNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsOffLine = table.Column(type: "bit", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(450)", nullable: true), - Lot = table.Column(type: "nvarchar(450)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(max)", nullable: true), - ContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_BackFlushNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_BackFlushNoteDetail_Store_BackFlushNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_BackFlushNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ContainerBindNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ContainerBindNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ContainerBindNoteDetail_Store_ContainerBindNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_ContainerBindNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_CountAdjustNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CountLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - InventoryQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - InventoryQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - Type = table.Column(type: "int", nullable: false), - ReasonCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CountQty = table.Column(type: "decimal(18,6)", nullable: false), - AdjustQty = table.Column(type: "decimal(18,6)", nullable: false), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CountAdjustNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_CountAdjustNoteDetail_Store_CountAdjustNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_CountAdjustNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_CountNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CountPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CountLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - InventoryQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - InventoryQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - FirstCount_Qty = table.Column(type: "decimal(18,6)", nullable: true), - FirstCount_Time = table.Column(type: "datetime2", nullable: true), - FirstCount_Operator = table.Column(type: "nvarchar(max)", nullable: true), - FirstCount_Description = table.Column(type: "nvarchar(max)", nullable: true), - RepeatCount_Qty = table.Column(type: "decimal(18,6)", nullable: true), - RepeatCount_Time = table.Column(type: "datetime2", nullable: true), - RepeatCount_Operator = table.Column(type: "nvarchar(max)", nullable: true), - RepeatCount_Description = table.Column(type: "nvarchar(max)", nullable: true), - AuditCount_Qty = table.Column(type: "decimal(18,6)", nullable: true), - AuditCount_Time = table.Column(type: "datetime2", nullable: true), - AuditCount_Operator = table.Column(type: "nvarchar(max)", nullable: true), - AuditCount_Description = table.Column(type: "nvarchar(max)", nullable: true), - FinalCountQty = table.Column(type: "decimal(18,6)", nullable: false), - DetailStatus = table.Column(type: "int", nullable: false), - Stage = table.Column(type: "int", nullable: false), - Adjusted = table.Column(type: "bit", nullable: false), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CountNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_CountNoteDetail_Store_CountNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_CountNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_CountPlanDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CountLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - InventoryQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - InventoryQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - FirstCount_Qty = table.Column(type: "decimal(18,6)", nullable: true), - FirstCount_Time = table.Column(type: "datetime2", nullable: true), - FirstCount_Operator = table.Column(type: "nvarchar(max)", nullable: true), - FirstCount_Description = table.Column(type: "nvarchar(max)", nullable: true), - RepeatCount_Qty = table.Column(type: "decimal(18,6)", nullable: true), - RepeatCount_Time = table.Column(type: "datetime2", nullable: true), - RepeatCount_Operator = table.Column(type: "nvarchar(max)", nullable: true), - RepeatCount_Description = table.Column(type: "nvarchar(max)", nullable: true), - AuditCount_Qty = table.Column(type: "decimal(18,6)", nullable: true), - AuditCount_Time = table.Column(type: "datetime2", nullable: true), - AuditCount_Operator = table.Column(type: "nvarchar(max)", nullable: true), - AuditCount_Description = table.Column(type: "nvarchar(max)", nullable: true), - FinalCountQty = table.Column(type: "decimal(18,6)", nullable: false), - DetailStatus = table.Column(type: "int", nullable: false), - Stage = table.Column(type: "int", nullable: false), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CountPlanDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_CountPlanDetail_Store_CountPlan_MasterID", - column: x => x.MasterID, - principalTable: "Store_CountPlan", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_CustomerAsnDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CustomerAsnDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_CustomerAsnDetail_Store_CustomerAsn_MasterID", - column: x => x.MasterID, - principalTable: "Store_CustomerAsn", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_CustomerReturnNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CustomerReturnNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_CustomerReturnNoteDetail_Store_CustomerReturnNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_CustomerReturnNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_DeliverNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DeliverTime = table.Column(type: "datetime2", nullable: false), - ExpiredTime = table.Column(type: "datetime2", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_DeliverNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_DeliverNoteDetail_Store_DeliverNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_DeliverNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_DeliverPlanDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_DeliverPlanDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_DeliverPlanDetail_Store_DeliverPlan_MasterID", - column: x => x.MasterID, - principalTable: "Store_DeliverPlan", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_DeliverRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ExpiredTime = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_DeliverRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_DeliverRequestDetail_Store_DeliverRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_DeliverRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectAbnormalNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - AbnormalType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectAbnormalNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_InspectAbnormalNoteDetail_Store_InspectAbnormalNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_InspectAbnormalNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - InspectType = table.Column(type: "int", nullable: false), - SamplePercent = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - ReceiveQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - InspectQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - GoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - FailedReason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FailedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - CrackQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - InspectUser_Name = table.Column(type: "nvarchar(max)", nullable: true), - InspectUser_Phone = table.Column(type: "nvarchar(max)", nullable: true), - InspectUser_Email = table.Column(type: "nvarchar(max)", nullable: true), - NotPassedQty = table.Column(type: "decimal(18,6)", nullable: false), - DetailInspectStatus = table.Column(type: "int", nullable: false), - SupplierPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - AbcClass = table.Column(type: "nvarchar(max)", nullable: true), - Appearance = table.Column(type: "nvarchar(max)", nullable: true), - Volume = table.Column(type: "nvarchar(max)", nullable: true), - Weight = table.Column(type: "nvarchar(max)", nullable: true), - OtherPropertyJson = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_InspectNoteDetail_Store_InspectNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_InspectNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectNoteSummaryDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - InspectType = table.Column(type: "int", nullable: false), - SamplePercent = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - ReceiveQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - InspectQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - GoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - FailedReason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FailedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - CrackQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - InspectUser_Name = table.Column(type: "nvarchar(max)", nullable: true), - InspectUser_Phone = table.Column(type: "nvarchar(max)", nullable: true), - InspectUser_Email = table.Column(type: "nvarchar(max)", nullable: true), - NotPassedQty = table.Column(type: "decimal(18,6)", nullable: false), - SummaryInspectStatus = table.Column(type: "int", nullable: false), - AbcClass = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectNoteSummaryDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_InspectNoteSummaryDetail_Store_InspectNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_InspectNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - InspectType = table.Column(type: "int", nullable: false), - SamplePercent = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - ReceiveQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - InspectQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - Attributes = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveUom = table.Column(type: "nvarchar(max)", nullable: true), - DetailInspectStatus = table.Column(type: "int", nullable: false), - AbcClass = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_InspectRequestDetail_Store_InspectRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_InspectRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectRequestSummaryDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - InspectType = table.Column(type: "int", nullable: false), - SamplePercent = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - ReceiveQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - ReceiveQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - InspectQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - InspectReport = table.Column(type: "nvarchar(max)", nullable: true), - SummaryInspectStatus = table.Column(type: "int", nullable: false), - GoodQty = table.Column(type: "decimal(18,6)", nullable: false), - FailedQty = table.Column(type: "decimal(18,6)", nullable: false), - CrackQty = table.Column(type: "decimal(18,6)", nullable: false), - NotPassedQty = table.Column(type: "decimal(18,6)", nullable: false), - AbcClass = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectRequestSummaryDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_InspectRequestSummaryDetail_Store_InspectRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_InspectRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_InventoryTransferNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Reason = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InventoryTransferNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_InventoryTransferNoteDetail_Store_InventoryTransferNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_InventoryTransferNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_IsolationNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_IsolationNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_IsolationNoteDetail_Store_IsolationNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_IsolationNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_IssueNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - IssueTime = table.Column(type: "datetime2", nullable: false), - ExpiredTime = table.Column(type: "datetime2", nullable: false), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WorkStation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_IssueNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_IssueNoteDetail_Store_IssueNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_IssueNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ItemTransformNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - FromQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - FromQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - FromBatch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - FromBatch_ArriveDate = table.Column(type: "datetime2", nullable: true), - FromBatch_ProduceDate = table.Column(type: "datetime2", nullable: true), - FromBatch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - FromStatus = table.Column(type: "int", nullable: false), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToItemCode = table.Column(type: "nvarchar(max)", nullable: true), - ToItem_Name = table.Column(type: "nvarchar(max)", nullable: true), - ToItem_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - ToItem_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - ToQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - ToBatch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - ToBatch_ArriveDate = table.Column(type: "datetime2", nullable: true), - ToBatch_ProduceDate = table.Column(type: "datetime2", nullable: true), - ToBatch_ExpireDate = table.Column(type: "datetime2", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - ToStatus = table.Column(type: "int", nullable: false), - ToLocationCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - LocationCode = table.Column(type: "nvarchar(max)", nullable: true), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ItemTransformNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ItemTransformNoteDetail_Store_ItemTransformNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_ItemTransformNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ItemTransformRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - LocationCode = table.Column(type: "nvarchar(max)", nullable: true), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - FromQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - FromQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - FromBatch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - FromBatch_ArriveDate = table.Column(type: "datetime2", nullable: true), - FromBatch_ProduceDate = table.Column(type: "datetime2", nullable: true), - FromBatch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - FromStatus = table.Column(type: "int", nullable: false), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToItem_Name = table.Column(type: "nvarchar(max)", nullable: true), - ToItem_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - ToItem_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ToItemCode = table.Column(type: "nvarchar(max)", nullable: true), - ToBatch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - ToBatch_ArriveDate = table.Column(type: "datetime2", nullable: true), - ToBatch_ProduceDate = table.Column(type: "datetime2", nullable: true), - ToBatch_ExpireDate = table.Column(type: "datetime2", nullable: true), - ToQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - ToQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - ToStatus = table.Column(type: "int", nullable: false), - ToLocationCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ItemTransformRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ItemTransformRequestDetail_Store_ItemTransformRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_ItemTransformRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_JisDeliverNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DeliverTime = table.Column(type: "datetime2", nullable: false), - ExpiredTime = table.Column(type: "datetime2", nullable: false), - Year = table.Column(type: "nvarchar(max)", nullable: true), - ProductNo = table.Column(type: "nvarchar(max)", nullable: true), - ProjectCode = table.Column(type: "nvarchar(max)", nullable: true), - Position = table.Column(type: "nvarchar(max)", nullable: true), - SeqNo = table.Column(type: "nvarchar(max)", nullable: true), - PackCapacity = table.Column(type: "nvarchar(max)", nullable: true), - OnlineType = table.Column(type: "nvarchar(max)", nullable: true), - Stage = table.Column(type: "nvarchar(max)", nullable: true), - UsedFor = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_JisDeliverNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_JisDeliverNoteDetail_Store_JisDeliverNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_JisDeliverNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_JisProductReceiptNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RawLocation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Year = table.Column(type: "nvarchar(max)", nullable: true), - ProductNo = table.Column(type: "nvarchar(max)", nullable: true), - ProjectCode = table.Column(type: "nvarchar(max)", nullable: true), - Position = table.Column(type: "nvarchar(max)", nullable: true), - SeqNo = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_JisProductReceiptNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_JisProductReceiptNoteDetail_Store_JisProductReceiptNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_JisProductReceiptNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_MaterialRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WorkStation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExpiredTime = table.Column(type: "datetime2", nullable: false), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - IssuedQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), - ReceivedQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), - Status = table.Column(type: "int", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_MaterialRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_MaterialRequestDetail_Store_MaterialRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_MaterialRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_OfflineSettlementNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_OfflineSettlementNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_OfflineSettlementNoteDetail_Store_OfflineSettlementNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_OfflineSettlementNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_PreparationPlanDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WorkStation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LineStatus = table.Column(type: "int", nullable: false), - LatestTime = table.Column(type: "datetime2", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PreparationPlanDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_PreparationPlanDetail_Store_PreparationPlan_MasterID", - column: x => x.MasterID, - principalTable: "Store_PreparationPlan", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductionPlanDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PlanQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - PlanQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - GoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 1m), - NoGoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 1m), - BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LineStatus = table.Column(type: "int", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductionPlanDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ProductionPlanDetail_Store_ProductionPlan_MasterID", - column: x => x.MasterID, - principalTable: "Store_ProductionPlan", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductionReturnNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductionReturnNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ProductionReturnNoteDetail_Store_ProductionReturnNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_ProductionReturnNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductionReturnRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(max)", nullable: true), - ToLocationCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductionReturnRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ProductionReturnRequestDetail_Store_ProductionReturnRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_ProductionReturnRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductL7PartsNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RowID = table.Column(type: "int", nullable: false), - ProductNo = table.Column(type: "nvarchar(450)", nullable: true), - Program = table.Column(type: "nvarchar(max)", nullable: true), - Position = table.Column(type: "nvarchar(450)", nullable: true), - FATA = table.Column(type: "nvarchar(max)", nullable: true), - Configuration = table.Column(type: "nvarchar(450)", nullable: true), - L7Part = table.Column(type: "nvarchar(450)", nullable: true), - CanMake = table.Column(type: "bit", nullable: false), - CanBuy = table.Column(type: "bit", nullable: false), - RawLocation = table.Column(type: "nvarchar(max)", nullable: true), - LocationCode = table.Column(type: "nvarchar(max)", nullable: true), - ProdLine = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Qty = table.Column(type: "int", nullable: false), - State = table.Column(type: "int", nullable: false), - CreateDate = table.Column(type: "datetime2", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductL7PartsNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ProductL7PartsNoteDetail_Store_ProductL7PartsNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_ProductL7PartsNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductReceiptNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RawLocation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductReceiptNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ProductReceiptNoteDetail_Store_ProductReceiptNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_ProductReceiptNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductReceiptRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductReceiptRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ProductReceiptRequestDetail_Store_ProductReceiptRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_ProductReceiptRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductRecycleNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RawLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RawLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - RawLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - RawLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ReasonCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductRecycleNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ProductRecycleNoteDetail_Store_ProductRecycleNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_ProductRecycleNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductRecycleRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - RawLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RawLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - RawLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - RawLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductRecycleRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ProductRecycleRequestDetail_Store_ProductRecycleRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_ProductRecycleRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_PurchaseOrderDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - ConvertRate = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 1m), - IsConsignment = table.Column(type: "bit", nullable: false, defaultValue: false), - LineStatus = table.Column(type: "int", nullable: false), - LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProjectCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PurchaseOrderDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_PurchaseOrderDetail_Store_PurchaseOrder_MasterID", - column: x => x.MasterID, - principalTable: "Store_PurchaseOrder", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_PurchaseReceiptNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PurchaseReceiptInspectStatus = table.Column(type: "int", nullable: false), - InspectPhotoJson = table.Column(type: "nvarchar(max)", nullable: true), - FailedReason = table.Column(type: "nvarchar(max)", nullable: true), - MassDefect = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PurchaseReceiptNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_PurchaseReceiptNoteDetail_Store_PurchaseReceiptNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_PurchaseReceiptNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_PurchaseReturnNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Reason = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PurchaseReturnNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_PurchaseReturnNoteDetail_Store_PurchaseReturnNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_PurchaseReturnNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_PurchaseReturnRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PurchaseReturnRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_PurchaseReturnRequestDetail_Store_PurchaseReturnRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_PurchaseReturnRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_PutawayNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PutawayNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_PutawayNoteDetail_Store_PutawayNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_PutawayNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_PutawayRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - InventoryQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - InventoryQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_PutawayRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_PutawayRequestDetail_Store_PutawayRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_PutawayRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ReceiptAbnormalNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - AbnormalType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ReceiptAbnormalNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ReceiptAbnormalNoteDetail_Store_ReceiptAbnormalNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_ReceiptAbnormalNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_RecycledMaterialReceiptNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_RecycledMaterialReceiptNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_RecycledMaterialReceiptNoteDetail_Store_RecycledMaterialReceiptNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_RecycledMaterialReceiptNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_SaleOrderDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - SoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CustomerPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - CustomerPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - ConvertRate = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 1m), - LineStatus = table.Column(type: "int", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_SaleOrderDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_SaleOrderDetail_Store_SaleOrder_MasterID", - column: x => x.MasterID, - principalTable: "Store_SaleOrder", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ScrapNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReasonCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ScrapNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ScrapNoteDetail_Store_ScrapNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_ScrapNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_SupplierAsnDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - ConvertRate = table.Column(type: "decimal(18,6)", nullable: false), - LocationErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ProjectCode = table.Column(type: "nvarchar(max)", nullable: true), - Ctype = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_SupplierAsnDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_SupplierAsnDetail_Store_SupplierAsn_MasterID", - column: x => x.MasterID, - principalTable: "Store_SupplierAsn", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_TransferNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - InTransitLocation = table.Column(type: "nvarchar(max)", nullable: true), - Reason = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_TransferNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_TransferNoteDetail_Store_TransferNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_TransferNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_TransferRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - InTransitLocation = table.Column(type: "nvarchar(max)", nullable: true), - Reason = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_TransferRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_TransferRequestDetail_Store_TransferRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_TransferRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_UnplannedIssueNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_UnplannedIssueNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_UnplannedIssueNoteDetail_Store_UnplannedIssueNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_UnplannedIssueNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_UnplannedIssueRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_UnplannedIssueRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_UnplannedIssueRequestDetail_Store_UnplannedIssueRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_UnplannedIssueRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_UnplannedReceiptNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_UnplannedReceiptNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_UnplannedReceiptNoteDetail_Store_UnplannedReceiptNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_UnplannedReceiptNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_UnplannedReceiptRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(max)", nullable: true), - Location_Area = table.Column(type: "nvarchar(max)", nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_UnplannedReceiptRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_UnplannedReceiptRequestDetail_Store_UnplannedReceiptRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_UnplannedReceiptRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_WarehouseTransferNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Reason = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(max)", nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(max)", nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(max)", nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(max)", nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_WarehouseTransferNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_WarehouseTransferNoteDetail_Store_WarehouseTransferNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_WarehouseTransferNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_WorkOrderDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - EffectiveDate = table.Column(type: "datetime2", nullable: false), - Op = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RawQty_Uom = table.Column(type: "nvarchar(max)", nullable: true), - RawQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - RawLocation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(max)", nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_WorkOrderDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_WorkOrderDetail_Store_WorkOrder_MasterID", - column: x => x.MasterID, - principalTable: "Store_WorkOrder", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectAbnormalNoteDetailPhoto", - columns: table => new - { - PhotoID = table.Column(type: "uniqueidentifier", nullable: false), - InspectAbnormalNoteDetailId = table.Column(type: "uniqueidentifier", nullable: false), - MasterID = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectAbnormalNoteDetailPhoto", x => new { x.InspectAbnormalNoteDetailId, x.PhotoID }); - table.ForeignKey( - name: "FK_Store_InspectAbnormalNoteDetailPhoto_Store_InspectAbnormalNoteDetail_InspectAbnormalNoteDetailId", - column: x => x.InspectAbnormalNoteDetailId, - principalTable: "Store_InspectAbnormalNoteDetail", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectNoteDetailPhoto", - columns: table => new - { - PhotoID = table.Column(type: "uniqueidentifier", nullable: false), - InspectNoteDetailId = table.Column(type: "uniqueidentifier", nullable: false), - MasterID = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectNoteDetailPhoto", x => new { x.InspectNoteDetailId, x.PhotoID }); - table.ForeignKey( - name: "FK_Store_InspectNoteDetailPhoto_Store_InspectNoteDetail_InspectNoteDetailId", - column: x => x.InspectNoteDetailId, - principalTable: "Store_InspectNoteDetail", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ReceiptAbnormalNotePhoto", - columns: table => new - { - PhotoID = table.Column(type: "uniqueidentifier", nullable: false), - ReceiptAbnormalNoteDetailId = table.Column(type: "uniqueidentifier", nullable: false), - MasterID = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ReceiptAbnormalNotePhoto", x => new { x.ReceiptAbnormalNoteDetailId, x.PhotoID }); - table.ForeignKey( - name: "FK_Store_ReceiptAbnormalNotePhoto_Store_ReceiptAbnormalNoteDetail_ReceiptAbnormalNoteDetailId", - column: x => x.ReceiptAbnormalNoteDetailId, - principalTable: "Store_ReceiptAbnormalNoteDetail", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptRequest_Number_Company", - table: "Store_PurchaseReceiptRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptRequest_SupplierCode", - table: "Store_PurchaseReceiptRequest", - column: "SupplierCode"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptRequestDetail_MasterID", - table: "Store_PurchaseReceiptRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptRequestDetail_Number_PackingCode", - table: "Store_PurchaseReceiptRequestDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_BackFlushNote_Number_Company", - table: "Store_BackFlushNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_BackFlushNoteDetail_MasterID", - table: "Store_BackFlushNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_BackFlushNoteDetail_Number_ItemCode_Lot", - table: "Store_BackFlushNoteDetail", - columns: new[] { "Number", "ItemCode", "Lot" }, - unique: true, - filter: "[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ContainerBindNote_Number_Company", - table: "Store_ContainerBindNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ContainerBindNoteDetail_MasterID", - table: "Store_ContainerBindNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ContainerBindNoteDetail_Number_PackingCode", - table: "Store_ContainerBindNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountAdjustNote_Number_Company", - table: "Store_CountAdjustNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountAdjustNoteDetail_MasterID", - table: "Store_CountAdjustNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountAdjustNoteDetail_Number_CountLabel", - table: "Store_CountAdjustNoteDetail", - columns: new[] { "Number", "CountLabel" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountNote_Number_Company", - table: "Store_CountNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountNoteDetail_MasterID", - table: "Store_CountNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountNoteDetail_Number_CountLabel", - table: "Store_CountNoteDetail", - columns: new[] { "Number", "CountLabel" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountPlan_Number_Company", - table: "Store_CountPlan", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountPlanDetail_MasterID", - table: "Store_CountPlanDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountPlanDetail_Number_CountLabel", - table: "Store_CountPlanDetail", - columns: new[] { "Number", "CountLabel" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerAsn_CustomerCode", - table: "Store_CustomerAsn", - column: "CustomerCode"); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerAsn_Number_Company", - table: "Store_CustomerAsn", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerAsnDetail_MasterID", - table: "Store_CustomerAsnDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerAsnDetail_Number_ItemCode", - table: "Store_CustomerAsnDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerReturnNote_Number_Company", - table: "Store_CustomerReturnNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerReturnNoteDetail_MasterID", - table: "Store_CustomerReturnNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerReturnNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_CustomerReturnNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverNote_Company_Number", - table: "Store_DeliverNote", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverNoteDetail_MasterID", - table: "Store_DeliverNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_DeliverNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverPlan_Number_Company", - table: "Store_DeliverPlan", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverPlanDetail_MasterID", - table: "Store_DeliverPlanDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverPlanDetail_Number_SoNumber_SoLine", - table: "Store_DeliverPlanDetail", - columns: new[] { "Number", "SoNumber", "SoLine" }, - unique: true, - filter: "[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverRequest_Company_Number", - table: "Store_DeliverRequest", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverRequestDetail_MasterID", - table: "Store_DeliverRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverRequestDetail_Number_ItemCode_ExpiredTime_ToLocationCode", - table: "Store_DeliverRequestDetail", - columns: new[] { "Number", "ItemCode", "ExpiredTime", "ToLocationCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectAbnormalNote_Number_Company", - table: "Store_InspectAbnormalNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectAbnormalNoteDetail_MasterID", - table: "Store_InspectAbnormalNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectAbnormalNoteDetail_Number_PackingCode", - table: "Store_InspectAbnormalNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectNote_Number_Company", - table: "Store_InspectNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectNoteDetail_MasterID", - table: "Store_InspectNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectNoteDetail_Number_PackingCode", - table: "Store_InspectNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectNoteSummaryDetail_MasterID", - table: "Store_InspectNoteSummaryDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectNoteSummaryDetail_Number_ItemCode", - table: "Store_InspectNoteSummaryDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectRequest_Number_Company", - table: "Store_InspectRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectRequestDetail_MasterID", - table: "Store_InspectRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectRequestDetail_Number_PackingCode", - table: "Store_InspectRequestDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectRequestSummaryDetail_MasterID", - table: "Store_InspectRequestSummaryDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectRequestSummaryDetail_Number_ItemCode_Lot", - table: "Store_InspectRequestSummaryDetail", - columns: new[] { "Number", "ItemCode", "Lot" }, - unique: true, - filter: "[Lot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_InventoryTransferNote_Number_Company", - table: "Store_InventoryTransferNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InventoryTransferNoteDetail_MasterID", - table: "Store_InventoryTransferNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_InventoryTransferNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_InventoryTransferNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_IsolationNote_Number_Company", - table: "Store_IsolationNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_IsolationNoteDetail_FromPackingCode", - table: "Store_IsolationNoteDetail", - column: "FromPackingCode"); - - migrationBuilder.CreateIndex( - name: "IX_Store_IsolationNoteDetail_MasterID", - table: "Store_IsolationNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_IsolationNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_IsolationNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_IssueNote_Number_Company", - table: "Store_IssueNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_IssueNoteDetail_FromPackingCode", - table: "Store_IssueNoteDetail", - column: "FromPackingCode"); - - migrationBuilder.CreateIndex( - name: "IX_Store_IssueNoteDetail_MasterID", - table: "Store_IssueNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_IssueNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_IssueNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ItemTransformNote_Number_Company", - table: "Store_ItemTransformNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ItemTransformNoteDetail_MasterID", - table: "Store_ItemTransformNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ItemTransformNoteDetail_Number_FromPackingCode_FromStatus_ToPackingCode_ToStatus", - table: "Store_ItemTransformNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ItemTransformRequest_Number_Company", - table: "Store_ItemTransformRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ItemTransformRequestDetail_MasterID", - table: "Store_ItemTransformRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ItemTransformRequestDetail_Number_FromPackingCode_FromStatus_ToPackingCode_ToStatus", - table: "Store_ItemTransformRequestDetail", - columns: new[] { "Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_JisDeliverNote_Company_Number", - table: "Store_JisDeliverNote", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_JisDeliverNoteDetail_MasterID", - table: "Store_JisDeliverNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_JisDeliverNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_JisDeliverNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_JisProductReceiptNote_Company_Number", - table: "Store_JisProductReceiptNote", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_JisProductReceiptNoteDetail_MasterID", - table: "Store_JisProductReceiptNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_JisProductReceiptNoteDetail_Number_PackingCode", - table: "Store_JisProductReceiptNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_MaterialRequest_Company_Number", - table: "Store_MaterialRequest", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_MaterialRequestDetail_ItemCode", - table: "Store_MaterialRequestDetail", - column: "ItemCode"); - - migrationBuilder.CreateIndex( - name: "IX_Store_MaterialRequestDetail_MasterID", - table: "Store_MaterialRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_MaterialRequestDetail_Number_ItemCode_ToLocationCode", - table: "Store_MaterialRequestDetail", - columns: new[] { "Number", "ItemCode", "ToLocationCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_OfflineSettlementNote_Number_Company", - table: "Store_OfflineSettlementNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_OfflineSettlementNoteDetail_MasterID", - table: "Store_OfflineSettlementNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_OfflineSettlementNoteDetail_Number", - table: "Store_OfflineSettlementNoteDetail", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PreparationPlan_Number_Company", - table: "Store_PreparationPlan", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PreparationPlanDetail_MasterID", - table: "Store_PreparationPlanDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PreparationPlanDetail_Number_ItemCode", - table: "Store_PreparationPlanDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionPlan_Number_Company", - table: "Store_ProductionPlan", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionPlanDetail_MasterID", - table: "Store_ProductionPlanDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionPlanDetail_Number_ItemCode", - table: "Store_ProductionPlanDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnNote_Number_Company", - table: "Store_ProductionReturnNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnNoteDetail_MasterID", - table: "Store_ProductionReturnNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_ProductionReturnNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnRequest_Company_Number", - table: "Store_ProductionReturnRequest", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnRequestDetail_ItemCode", - table: "Store_ProductionReturnRequestDetail", - column: "ItemCode"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnRequestDetail_MasterID", - table: "Store_ProductionReturnRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnRequestDetail_Number_ItemCode_LocationCode", - table: "Store_ProductionReturnRequestDetail", - columns: new[] { "Number", "ItemCode", "LocationCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductL7PartsNote_Company_Number", - table: "Store_ProductL7PartsNote", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductL7PartsNoteDetail_MasterID", - table: "Store_ProductL7PartsNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductL7PartsNoteDetail_Number_ProductNo_Position_Configuration_L7Part", - table: "Store_ProductL7PartsNoteDetail", - columns: new[] { "Number", "ProductNo", "Position", "Configuration", "L7Part" }, - unique: true, - filter: "[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptNote_Company_Number", - table: "Store_ProductReceiptNote", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptNoteDetail_MasterID", - table: "Store_ProductReceiptNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptNoteDetail_Number_PackingCode", - table: "Store_ProductReceiptNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptRequest_Number_Company", - table: "Store_ProductReceiptRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptRequestDetail_MasterID", - table: "Store_ProductReceiptRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptRequestDetail_Number_ItemCode", - table: "Store_ProductReceiptRequestDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleNote_Number_Company", - table: "Store_ProductRecycleNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleNoteDetail_MasterID", - table: "Store_ProductRecycleNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleNoteDetail_Number_ItemCode", - table: "Store_ProductRecycleNoteDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleRequest_Number_Company", - table: "Store_ProductRecycleRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleRequestDetail_MasterID", - table: "Store_ProductRecycleRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleRequestDetail_Number_ItemCode", - table: "Store_ProductRecycleRequestDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseOrder_Number_Company", - table: "Store_PurchaseOrder", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseOrderDetail_ItemCode_Number_PoLine", - table: "Store_PurchaseOrderDetail", - columns: new[] { "ItemCode", "Number", "PoLine" }, - unique: true, - filter: "[PoLine] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseOrderDetail_MasterID", - table: "Store_PurchaseOrderDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptNote_Number_Company", - table: "Store_PurchaseReceiptNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptNote_SupplierCode", - table: "Store_PurchaseReceiptNote", - column: "SupplierCode"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptNoteDetail_MasterID", - table: "Store_PurchaseReceiptNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReturnNote_Number_Company", - table: "Store_PurchaseReturnNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReturnNoteDetail_MasterID", - table: "Store_PurchaseReturnNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReturnNoteDetail_Number_PackingCode", - table: "Store_PurchaseReturnNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReturnRequest_Number_Company", - table: "Store_PurchaseReturnRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReturnRequestDetail_MasterID", - table: "Store_PurchaseReturnRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReturnRequestDetail_Number_PackingCode", - table: "Store_PurchaseReturnRequestDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayNote_Number_Company", - table: "Store_PutawayNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayNoteDetail_MasterID", - table: "Store_PutawayNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_PutawayNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayRequest_Number_Company", - table: "Store_PutawayRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayRequestDetail_MasterID", - table: "Store_PutawayRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ReceiptAbnormalNote_AsnNumber_Number_Company_SupplierCode_ReceiptNumber", - table: "Store_ReceiptAbnormalNote", - columns: new[] { "AsnNumber", "Number", "Company", "SupplierCode", "ReceiptNumber" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ReceiptAbnormalNote_SupplierCode", - table: "Store_ReceiptAbnormalNote", - column: "SupplierCode"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ReceiptAbnormalNoteDetail_MasterID", - table: "Store_ReceiptAbnormalNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ReceiptAbnormalNoteDetail_Number_PackingCode_ReceiptNumber", - table: "Store_ReceiptAbnormalNoteDetail", - columns: new[] { "Number", "PackingCode", "ReceiptNumber" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_RecycledMaterialReceiptNote_Number_Company", - table: "Store_RecycledMaterialReceiptNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_RecycledMaterialReceiptNoteDetail_MasterID", - table: "Store_RecycledMaterialReceiptNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_RecycledMaterialReceiptNoteDetail_Number_PackingCode", - table: "Store_RecycledMaterialReceiptNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_SaleOrder_CustomerCode", - table: "Store_SaleOrder", - column: "CustomerCode"); - - migrationBuilder.CreateIndex( - name: "IX_Store_SaleOrder_Number_Company", - table: "Store_SaleOrder", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_SaleOrderDetail_MasterID", - table: "Store_SaleOrderDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_SaleOrderDetail_Number_SoLine_ItemCode", - table: "Store_SaleOrderDetail", - columns: new[] { "Number", "SoLine", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ScrapNote_Number_Company", - table: "Store_ScrapNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ScrapNoteDetail_MasterID", - table: "Store_ScrapNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ScrapNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_ScrapNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_SupplierAsn_Number_Company", - table: "Store_SupplierAsn", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_SupplierAsn_SupplierCode", - table: "Store_SupplierAsn", - column: "SupplierCode"); - - migrationBuilder.CreateIndex( - name: "IX_Store_SupplierAsnDetail_MasterID", - table: "Store_SupplierAsnDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_SupplierAsnDetail_Number_ItemCode_PackingCode", - table: "Store_SupplierAsnDetail", - columns: new[] { "Number", "ItemCode", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferNote_Number_Company", - table: "Store_TransferNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferNoteDetail_MasterID", - table: "Store_TransferNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode_FromStatus_ToStatus", - table: "Store_TransferNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferRequest_Number_Company", - table: "Store_TransferRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferRequestDetail_MasterID", - table: "Store_TransferRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferRequestDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode_FromStatus_ToStatus", - table: "Store_TransferRequestDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueNote_Number_Company", - table: "Store_UnplannedIssueNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueNoteDetail_MasterID", - table: "Store_UnplannedIssueNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueNoteDetail_Number_PackingCode", - table: "Store_UnplannedIssueNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueRequest_Company_Number", - table: "Store_UnplannedIssueRequest", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueRequestDetail_MasterID", - table: "Store_UnplannedIssueRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueRequestDetail_Number_ItemCode", - table: "Store_UnplannedIssueRequestDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptNote_Number_Company", - table: "Store_UnplannedReceiptNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptNoteDetail_MasterID", - table: "Store_UnplannedReceiptNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptNoteDetail_Number_PackingCode", - table: "Store_UnplannedReceiptNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptRequest_Company_Number", - table: "Store_UnplannedReceiptRequest", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptRequestDetail_MasterID", - table: "Store_UnplannedReceiptRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptRequestDetail_Number_ItemCode", - table: "Store_UnplannedReceiptRequestDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_WarehouseTransferNote_Number_Company", - table: "Store_WarehouseTransferNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_WarehouseTransferNoteDetail_MasterID", - table: "Store_WarehouseTransferNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_WarehouseTransferNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_WarehouseTransferNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_WorkOrder_Number_Company", - table: "Store_WorkOrder", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_WorkOrderDetail_MasterID", - table: "Store_WorkOrderDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_WorkOrderDetail_Number_ItemCode", - table: "Store_WorkOrderDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_ContainerBindNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_CountNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_CountPlanDetail"); - - migrationBuilder.DropTable( - name: "Store_CustomerAsnDetail"); - - migrationBuilder.DropTable( - name: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_DeliverNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_DeliverPlanDetail"); - - migrationBuilder.DropTable( - name: "Store_DeliverRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_ExchangeData"); - - migrationBuilder.DropTable( - name: "Store_InspectAbnormalNoteDetailPhoto"); - - migrationBuilder.DropTable( - name: "Store_InspectNoteDetailPhoto"); - - migrationBuilder.DropTable( - name: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropTable( - name: "Store_InspectRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropTable( - name: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_IsolationNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_IssueNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_MaterialRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_PreparationPlanDetail"); - - migrationBuilder.DropTable( - name: "Store_ProductionPlanDetail"); - - migrationBuilder.DropTable( - name: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_ProductL7PartsNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropTable( - name: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_PutawayNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_PutawayRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_ReceiptAbnormalNotePhoto"); - - migrationBuilder.DropTable( - name: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_SaleOrderDetail"); - - migrationBuilder.DropTable( - name: "Store_ScrapNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_SupplierAsnDetail"); - - migrationBuilder.DropTable( - name: "Store_TransferNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_TransferRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_WorkOrderDetail"); - - migrationBuilder.DropTable( - name: "Store_PurchaseReceiptRequest"); - - migrationBuilder.DropTable( - name: "Store_BackFlushNote"); - - migrationBuilder.DropTable( - name: "Store_ContainerBindNote"); - - migrationBuilder.DropTable( - name: "Store_CountAdjustNote"); - - migrationBuilder.DropTable( - name: "Store_CountNote"); - - migrationBuilder.DropTable( - name: "Store_CountPlan"); - - migrationBuilder.DropTable( - name: "Store_CustomerAsn"); - - migrationBuilder.DropTable( - name: "Store_CustomerReturnNote"); - - migrationBuilder.DropTable( - name: "Store_DeliverNote"); - - migrationBuilder.DropTable( - name: "Store_DeliverPlan"); - - migrationBuilder.DropTable( - name: "Store_DeliverRequest"); - - migrationBuilder.DropTable( - name: "Store_InspectAbnormalNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_InspectNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_InspectRequest"); - - migrationBuilder.DropTable( - name: "Store_InventoryTransferNote"); - - migrationBuilder.DropTable( - name: "Store_IsolationNote"); - - migrationBuilder.DropTable( - name: "Store_IssueNote"); - - migrationBuilder.DropTable( - name: "Store_ItemTransformNote"); - - migrationBuilder.DropTable( - name: "Store_ItemTransformRequest"); - - migrationBuilder.DropTable( - name: "Store_JisDeliverNote"); - - migrationBuilder.DropTable( - name: "Store_JisProductReceiptNote"); - - migrationBuilder.DropTable( - name: "Store_MaterialRequest"); - - migrationBuilder.DropTable( - name: "Store_OfflineSettlementNote"); - - migrationBuilder.DropTable( - name: "Store_PreparationPlan"); - - migrationBuilder.DropTable( - name: "Store_ProductionPlan"); - - migrationBuilder.DropTable( - name: "Store_ProductionReturnNote"); - - migrationBuilder.DropTable( - name: "Store_ProductionReturnRequest"); - - migrationBuilder.DropTable( - name: "Store_ProductL7PartsNote"); - - migrationBuilder.DropTable( - name: "Store_ProductReceiptNote"); - - migrationBuilder.DropTable( - name: "Store_ProductReceiptRequest"); - - migrationBuilder.DropTable( - name: "Store_ProductRecycleNote"); - - migrationBuilder.DropTable( - name: "Store_ProductRecycleRequest"); - - migrationBuilder.DropTable( - name: "Store_PurchaseOrder"); - - migrationBuilder.DropTable( - name: "Store_PurchaseReceiptNote"); - - migrationBuilder.DropTable( - name: "Store_PurchaseReturnNote"); - - migrationBuilder.DropTable( - name: "Store_PurchaseReturnRequest"); - - migrationBuilder.DropTable( - name: "Store_PutawayNote"); - - migrationBuilder.DropTable( - name: "Store_PutawayRequest"); - - migrationBuilder.DropTable( - name: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_RecycledMaterialReceiptNote"); - - migrationBuilder.DropTable( - name: "Store_SaleOrder"); - - migrationBuilder.DropTable( - name: "Store_ScrapNote"); - - migrationBuilder.DropTable( - name: "Store_SupplierAsn"); - - migrationBuilder.DropTable( - name: "Store_TransferNote"); - - migrationBuilder.DropTable( - name: "Store_TransferRequest"); - - migrationBuilder.DropTable( - name: "Store_UnplannedIssueNote"); - - migrationBuilder.DropTable( - name: "Store_UnplannedIssueRequest"); - - migrationBuilder.DropTable( - name: "Store_UnplannedReceiptNote"); - - migrationBuilder.DropTable( - name: "Store_UnplannedReceiptRequest"); - - migrationBuilder.DropTable( - name: "Store_WarehouseTransferNote"); - - migrationBuilder.DropTable( - name: "Store_WorkOrder"); - - migrationBuilder.DropTable( - name: "Store_InspectAbnormalNote"); - - migrationBuilder.DropTable( - name: "Store_InspectNote"); - - migrationBuilder.DropTable( - name: "Store_ReceiptAbnormalNote"); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230104034259_RemoveCompany.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230104034259_RemoveCompany.Designer.cs deleted file mode 100644 index b41415cc2..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230104034259_RemoveCompany.Designer.cs +++ /dev/null @@ -1,19700 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230104034259_RemoveCompany")] - partial class RemoveCompany - { - protected override void BuildTargetModel(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.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - 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("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - 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("Lot") - .HasColumnType("nvarchar(450)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RequestType") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("DockCode") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveUom") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RawLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique() - .HasFilter("[LocationCode] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("HandledContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledLot") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("RecommendContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendLot") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .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)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateType") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .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") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "AuditCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "FirstCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "RepeatCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.Navigation("AuditCount"); - - b.Navigation("Batch"); - - b.Navigation("FirstCount"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RepeatCount"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "AuditCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "FirstCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "RepeatCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.Navigation("AuditCount"); - - b.Navigation("Batch"); - - b.Navigation("FirstCount"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RepeatCount"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("CustomerAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnId"); - - b1.ToTable("Store_CustomerAsn"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CustomerAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CustomerAsnId"); - - b1.ToTable("Store_CustomerAsn"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnId"); - }); - - b.Navigation("Contacts"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteId"); - - b1.ToTable("Store_DeliverNote"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteId"); - }); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("InspectAbnormalNoteDetailId", "PhotoID"); - - b1.ToTable("Store_InspectAbnormalNoteDetailPhoto"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Photos"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("InspectNoteDetailId", "PhotoID"); - - b1.ToTable("Store_InspectNoteDetailPhoto"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InspectUser"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Photos"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InspectUser"); - - b.Navigation("Item"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "FromQty", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ToQty", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("FromQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - - b.Navigation("ToQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "FromQty", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ToQty", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("FromQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - - b.Navigation("ToQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductL7PartsNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductL7PartsNoteDetailId"); - - b1.ToTable("Store_ProductL7PartsNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductL7PartsNoteDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ProductItem", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ProductItem"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "RawLocation", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("RawLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PlanQty", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("PlanQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("PurchaseOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderId"); - - b1.ToTable("Store_PurchaseOrder"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "HandledBatch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "RecommendBatch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "HandledLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "RecommendLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "HandledQty", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RecommendQty", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("HandledBatch"); - - b.Navigation("HandledLocation"); - - b.Navigation("HandledQty"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("RecommendBatch"); - - b.Navigation("RecommendLocation"); - - b.Navigation("RecommendQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("ReceiptAbnormalNoteDetailId", "PhotoID"); - - b1.ToTable("Store_ReceiptAbnormalNotePhoto"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Photos"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("SaleOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderId"); - - b1.ToTable("Store_SaleOrder"); - - b1.WithOwner() - .HasForeignKey("SaleOrderId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "CustomerPack", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.Navigation("CustomerPack"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("SupplierAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnId"); - - b1.ToTable("Store_SupplierAsn"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RawQty", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("RawQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230104034259_RemoveCompany.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230104034259_RemoveCompany.cs deleted file mode 100644 index a0b55c93c..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230104034259_RemoveCompany.cs +++ /dev/null @@ -1,14501 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class RemoveCompany : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Store_WorkOrder_Number_Company", - table: "Store_WorkOrder"); - - migrationBuilder.DropIndex( - name: "IX_Store_WarehouseTransferNote_Number_Company", - table: "Store_WarehouseTransferNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedReceiptRequestDetail_Number_ItemCode", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedReceiptRequest_Company_Number", - table: "Store_UnplannedReceiptRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedReceiptNoteDetail_Number_PackingCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedReceiptNote_Number_Company", - table: "Store_UnplannedReceiptNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedIssueRequestDetail_Number_ItemCode", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedIssueRequest_Company_Number", - table: "Store_UnplannedIssueRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedIssueNoteDetail_Number_PackingCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedIssueNote_Number_Company", - table: "Store_UnplannedIssueNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_TransferRequestDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode_FromStatus_ToStatus", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_TransferRequest_Number_Company", - table: "Store_TransferRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_TransferNote_Number_Company", - table: "Store_TransferNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_SupplierAsn_Number_Company", - table: "Store_SupplierAsn"); - - migrationBuilder.DropIndex( - name: "IX_Store_ScrapNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_ScrapNote_Number_Company", - table: "Store_ScrapNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_SaleOrder_Number_Company", - table: "Store_SaleOrder"); - - migrationBuilder.DropIndex( - name: "IX_Store_RecycledMaterialReceiptNote_Number_Company", - table: "Store_RecycledMaterialReceiptNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ReceiptAbnormalNote_AsnNumber_Number_Company_SupplierCode_ReceiptNumber", - table: "Store_ReceiptAbnormalNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_PutawayRequest_Number_Company", - table: "Store_PutawayRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_PutawayNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_PutawayNote_Number_Company", - table: "Store_PutawayNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_PurchaseReturnRequest_Number_Company", - table: "Store_PurchaseReturnRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_PurchaseReturnNote_Number_Company", - table: "Store_PurchaseReturnNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_PurchaseReceiptNote_Number_Company", - table: "Store_PurchaseReceiptNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_PurchaseOrder_Number_Company", - table: "Store_PurchaseOrder"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductRecycleRequest_Number_Company", - table: "Store_ProductRecycleRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductRecycleNote_Number_Company", - table: "Store_ProductRecycleNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductReceiptRequestDetail_Number_ItemCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductReceiptRequest_Number_Company", - table: "Store_ProductReceiptRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductReceiptNoteDetail_Number_PackingCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductReceiptNote_Company_Number", - table: "Store_ProductReceiptNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductL7PartsNote_Company_Number", - table: "Store_ProductL7PartsNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductionReturnRequest_Company_Number", - table: "Store_ProductionReturnRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductionReturnNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductionReturnNote_Number_Company", - table: "Store_ProductionReturnNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductionPlan_Number_Company", - table: "Store_ProductionPlan"); - - migrationBuilder.DropIndex( - name: "IX_Store_PreparationPlan_Number_Company", - table: "Store_PreparationPlan"); - - migrationBuilder.DropIndex( - name: "IX_Store_OfflineSettlementNote_Number_Company", - table: "Store_OfflineSettlementNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_MaterialRequest_Company_Number", - table: "Store_MaterialRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_JisProductReceiptNote_Company_Number", - table: "Store_JisProductReceiptNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_JisDeliverNote_Company_Number", - table: "Store_JisDeliverNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ItemTransformRequest_Number_Company", - table: "Store_ItemTransformRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_ItemTransformNote_Number_Company", - table: "Store_ItemTransformNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_IssueNote_Number_Company", - table: "Store_IssueNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_IsolationNote_Number_Company", - table: "Store_IsolationNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_InventoryTransferNote_Number_Company", - table: "Store_InventoryTransferNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_InspectRequest_Number_Company", - table: "Store_InspectRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_InspectNote_Number_Company", - table: "Store_InspectNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_InspectAbnormalNote_Number_Company", - table: "Store_InspectAbnormalNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_DeliverRequestDetail_Number_ItemCode_ExpiredTime_ToLocationCode", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_DeliverRequest_Company_Number", - table: "Store_DeliverRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_DeliverPlan_Number_Company", - table: "Store_DeliverPlan"); - - migrationBuilder.DropIndex( - name: "IX_Store_DeliverNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_DeliverNote_Company_Number", - table: "Store_DeliverNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_CustomerReturnNote_Number_Company", - table: "Store_CustomerReturnNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_CustomerAsn_Number_Company", - table: "Store_CustomerAsn"); - - migrationBuilder.DropIndex( - name: "IX_Store_CountPlan_Number_Company", - table: "Store_CountPlan"); - - migrationBuilder.DropIndex( - name: "IX_Store_CountNote_Number_Company", - table: "Store_CountNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_CountAdjustNoteDetail_Number_CountLabel", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_CountAdjustNote_Number_Company", - table: "Store_CountAdjustNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ContainerBindNote_Number_Company", - table: "Store_ContainerBindNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_BackFlushNote_Number_Company", - table: "Store_BackFlushNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_PurchaseReceiptRequest_Number_Company", - table: "Store_PurchaseReceiptRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_WorkOrder"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_WarehouseTransferNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_UnplannedReceiptRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_UnplannedReceiptNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_UnplannedIssueRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_UnplannedIssueNote"); - - migrationBuilder.DropColumn( - name: "InTransitLocation", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_TransferRequest"); - - migrationBuilder.DropColumn( - name: "TransferType", - table: "Store_TransferRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_TransferNote"); - - migrationBuilder.DropColumn( - name: "TransferType", - table: "Store_TransferNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_SupplierAsn"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ScrapNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_SaleOrder"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_RecycledMaterialReceiptNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ReceiptAbnormalNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_PutawayRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_PutawayNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_PurchaseReturnRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_PurchaseReturnNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_PurchaseReceiptNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_PurchaseOrder"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ProductRecycleRequest"); - - migrationBuilder.DropColumn( - name: "BomVersion", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "RawLocationCode", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "RawLocation_Area", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "RawLocation_ErpCode", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "RawLocation_Group", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ProductRecycleNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ProductReceiptRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ProductReceiptNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ProductL7PartsNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ProductionReturnRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ProductionReturnNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ProductionPlan"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_PreparationPlan"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_OfflineSettlementNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_MaterialRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_JisProductReceiptNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_JisDeliverNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ItemTransformRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ItemTransformNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_IssueNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_IsolationNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_InventoryTransferNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_InspectRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_InspectNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_InspectAbnormalNote"); - - migrationBuilder.DropColumn( - name: "ExpiredTime", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationCode", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_DeliverRequest"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_DeliverPlan"); - - migrationBuilder.DropColumn( - name: "DeliverTime", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ExpiredTime", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_CustomerReturnNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_CustomerAsn"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_CountPlan"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_CountNote"); - - migrationBuilder.DropColumn( - name: "JobNumber", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_CountAdjustNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_ContainerBindNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_BackFlushNote"); - - migrationBuilder.DropColumn( - name: "Company", - table: "Store_PurchaseReceiptRequest"); - - migrationBuilder.RenameColumn( - name: "NeedInTransitLocation", - table: "Store_TransferRequest", - newName: "UseOnTheWayLocation"); - - migrationBuilder.RenameColumn( - name: "InTransitLocation", - table: "Store_TransferNoteDetail", - newName: "OnTheWayLocationCode"); - - migrationBuilder.RenameColumn( - name: "NeedInTransitLocation", - table: "Store_TransferNote", - newName: "UseOnTheWayLocation"); - - migrationBuilder.RenameColumn( - name: "Adjusted", - table: "Store_TransferNote", - newName: "Confirmed"); - - migrationBuilder.RenameColumn( - name: "LocationErpCode", - table: "Store_SupplierAsnDetail", - newName: "RecommendErpCode"); - - migrationBuilder.RenameColumn( - name: "PutawayType", - table: "Store_PutawayRequest", - newName: "Type"); - - migrationBuilder.RenameColumn( - name: "PutawayJobType", - table: "Store_PutawayRequest", - newName: "PutawayMode"); - - migrationBuilder.RenameColumn( - name: "PRRequestNumber", - table: "Store_ProductRecycleNote", - newName: "RequestNumber"); - - migrationBuilder.RenameColumn( - name: "Location_Group", - table: "Store_MaterialRequestDetail", - newName: "ToLocation_Group"); - - migrationBuilder.RenameColumn( - name: "Location_ErpCode", - table: "Store_MaterialRequestDetail", - newName: "ToLocation_ErpCode"); - - migrationBuilder.RenameColumn( - name: "Location_Area", - table: "Store_MaterialRequestDetail", - newName: "ToLocation_Area"); - - migrationBuilder.RenameColumn( - name: "DeliverType", - table: "Store_DeliverRequest", - newName: "DeliverRequestType"); - - migrationBuilder.RenameColumn( - name: "Customer", - table: "Store_DeliverNote", - newName: "CustomerCode"); - - migrationBuilder.RenameColumn( - name: "Type", - table: "Store_CountAdjustNoteDetail", - newName: "TransInOut"); - - migrationBuilder.AlterColumn( - name: "RawQty_Uom", - table: "Store_WorkOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_WorkOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_WorkOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_WorkOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_WorkOrder", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_WorkOrder", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_TransferRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_TransferRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromPackingCode", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Type", - table: "Store_TransferRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_TransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_TransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ConfirmTime", - table: "Store_TransferNote", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "Type", - table: "Store_TransferNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_SupplierAsnDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_SupplierAsnDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "PlanUserCode", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Phone", - table: "Store_SupplierAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Name", - table: "Store_SupplierAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Email", - table: "Store_SupplierAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "CreateType", - table: "Store_SupplierAsn", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "PlanUserCode", - table: "Store_SupplierAsn", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ScrapNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ScrapNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLot", - table: "Store_ScrapNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ScrapRequestNumber", - table: "Store_ScrapNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_SaleOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_SaleOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustomerPack_PackUom", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Phone", - table: "Store_SaleOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Name", - table: "Store_SaleOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Email", - table: "Store_SaleOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PutawayRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PutawayRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InventoryQty_Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "FromContainerCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocationCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLot", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromPackingCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromStatus", - table: "Store_PutawayRequestDetail", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "FromWarehouseCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "HandledBatch_ArriveDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledBatch_ExpireDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledBatch_ProduceDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledBatch_SupplierBatch", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLocationCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLocation_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLocation_ErpCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLocation_Group", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledQty_Qty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledQty_Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendBatch_ArriveDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendBatch_ExpireDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendBatch_ProduceDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendBatch_SupplierBatch", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLocationCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLocation_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLocation_ErpCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLocation_Group", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendQty_Qty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendQty_Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToContainerCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocationCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLot", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToPackingCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToStatus", - table: "Store_PutawayRequestDetail", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "ToWarehouseCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "RequestNumber", - table: "Store_PutawayRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "ToPackingCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PutawayNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PutawayNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "JobNumber", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_PutawayNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Worker", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Type", - table: "Store_PutawayNote", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "RecommendErpCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "PutAwayQty", - table: "Store_PurchaseOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ReceivedQty", - table: "Store_PurchaseOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ReturnedQty", - table: "Store_PurchaseOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ShippedQty", - table: "Store_PurchaseOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Contacts_Phone", - table: "Store_PurchaseOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Name", - table: "Store_PurchaseOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Email", - table: "Store_PurchaseOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RawLocation_Group", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RawLocation_ErpCode", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RawLocation_Area", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Shift", - table: "Store_ProductRecycleRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Workshop", - table: "Store_ProductRecycleRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Shift", - table: "Store_ProductRecycleNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Workshop", - table: "Store_ProductRecycleNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "LocationCode", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RawArea", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ReturnQty", - table: "Store_ProductReceiptRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Workshop", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Team", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Shift", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProdLine", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Type", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RawLocation", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProdLine", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "RawArea", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ReturnQty", - table: "Store_ProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "WorkShop", - table: "Store_ProductReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "ProductReceiptRequestNumber", - table: "Store_ProductReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Type", - table: "Store_ProductReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToPackingCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PlanQty_Uom", - table: "Store_ProductionPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductionPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductionPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductionPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductionPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PreparationPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PreparationPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PreparationPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PreparationPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PreparationPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_MaterialRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_MaterialRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Type", - table: "Store_MaterialRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "UseOnTheWayLocation", - table: "Store_MaterialRequest", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToQty_Uom", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Name", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Desc2", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Desc1", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToBatch_SupplierBatch", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromQty_Uom", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromBatch_SupplierBatch", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToQty_Uom", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Name", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Desc2", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Desc1", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToBatch_SupplierBatch", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromQty_Uom", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromBatch_SupplierBatch", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_IssueNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_IssueNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "OnTheWayLocationCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ConfirmTime", - table: "Store_IssueNote", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "Confirmed", - table: "Store_IssueNote", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "RequestNumber", - table: "Store_IssueNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestType", - table: "Store_IssueNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "UseOnTheWayLocation", - table: "Store_IssueNote", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_IsolationNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_IsolationNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InspectRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InspectRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Phone", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Name", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Email", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InspectNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InspectNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Phone", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Name", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Email", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_DeliverRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_DeliverRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_DeliverRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_DeliverRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_DeliverRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "AreaCode", - table: "Store_DeliverRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "DeliverPlanNumber", - table: "Store_DeliverRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "CustomerAddressCode", - table: "Store_DeliverRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "DeliverTime", - table: "Store_DeliverRequest", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_DeliverPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_DeliverPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_DeliverPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_DeliverPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_DeliverPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToPackingCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLot", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_DeliverNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_DeliverNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromPackingCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLot", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ExtraProperties", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "CustomerAddressCode", - table: "Store_DeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "DeliverPlanNumber", - table: "Store_DeliverNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverRequestNumber", - table: "Store_DeliverNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "DeliverRequestType", - table: "Store_DeliverNote", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "DeliverTime", - table: "Store_DeliverNote", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "ToLocationCode", - table: "Store_DeliverNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_DeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_DeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_DeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_CustomerAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_CustomerAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_CustomerAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_CustomerAsnDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_CustomerAsnDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Phone", - table: "Store_CustomerAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Name", - table: "Store_CustomerAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Email", - table: "Store_CustomerAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RepeatCount_Operator", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RepeatCount_Description", - table: "Store_CountPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_CountPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_CountPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InventoryQty_Uom", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FirstCount_Operator", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FirstCount_Description", - table: "Store_CountPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AuditCount_Operator", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AuditCount_Description", - table: "Store_CountPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "JsonInventoryStatus", - table: "Store_CountPlan", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "JsonItemCodes", - table: "Store_CountPlan", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "JsonLocationCodes", - table: "Store_CountPlan", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RequestType", - table: "Store_CountPlan", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RepeatCount_Operator", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RepeatCount_Description", - table: "Store_CountNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_CountNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_CountNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InventoryQty_Uom", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FirstCount_Operator", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FirstCount_Description", - table: "Store_CountNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AuditCount_Operator", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AuditCount_Description", - table: "Store_CountNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InventoryQty_Uom", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "CountAdjustRequestNumber", - table: "Store_CountAdjustNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "IsAdjusted", - table: "Store_CountAdjustNote", - type: "bit", - nullable: false, - defaultValue: false); - - migrationBuilder.AddColumn( - name: "JobNumber", - table: "Store_CountAdjustNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Type", - table: "Store_CountAdjustNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_BackFlushNote", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_BackFlushNote", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "RecommendErpCode", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.CreateTable( - name: "Store_CountAdjustRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CountNoteNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CountPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CountAdjustRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_InventoryInitialNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InventoryInitialNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_NoOkConvertOkNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_NoOkConvertOkNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_ProductRecycleMaterialDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductItem_Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductItem_Desc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ProductItem_Desc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ProductLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Location_Area = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ProductRecycleMaterialDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ProductRecycleMaterialDetail_Store_ProductRecycleNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_ProductRecycleNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ScrapRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ScrapRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_CountAdjustRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), - InventoryQty_Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - InventoryQty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - CountQty = table.Column(type: "decimal(18,6)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Location_Area = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_CountAdjustRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_CountAdjustRequestDetail_Store_CountAdjustRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_CountAdjustRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_InventoryInitialNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Location_Area = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Status = table.Column(type: "int", nullable: false), - Qty_Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InventoryInitialNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_InventoryInitialNoteDetail_Store_InventoryInitialNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_InventoryInitialNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_NoOkConvertOkNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - Batch_SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Batch_ArriveDate = table.Column(type: "datetime2", nullable: true), - Batch_ProduceDate = table.Column(type: "datetime2", nullable: true), - Batch_ExpireDate = table.Column(type: "datetime2", nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocation_Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocation_Area = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocation_ErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocation_Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocation_Area = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocation_ErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "int", nullable: false), - ToStatus = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_NoOkConvertOkNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_NoOkConvertOkNoteDetail_Store_NoOkConvertOkNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_NoOkConvertOkNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ScrapRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReasonCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Location_Group = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Location_Area = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Location_ErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Item_Name = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Item_Desc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - Item_Desc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty_Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty_Qty = table.Column(type: "decimal(18,6)", nullable: true), - StdPack_PackUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - StdPack_PackQty = table.Column(type: "decimal(18,6)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ScrapRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_ScrapRequestDetail_Store_ScrapRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_ScrapRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_Store_WorkOrder_Number", - table: "Store_WorkOrder", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_WarehouseTransferNote_Number", - table: "Store_WarehouseTransferNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptRequestDetail_Number_PackingCode_ItemCode_Lot_Status", - table: "Store_UnplannedReceiptRequestDetail", - columns: new[] { "Number", "PackingCode", "ItemCode", "Lot", "Status" }, - unique: true, - filter: "[Lot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptRequest_Number", - table: "Store_UnplannedReceiptRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptNoteDetail_Number_PackingCode_ItemCode_Lot_Status", - table: "Store_UnplannedReceiptNoteDetail", - columns: new[] { "Number", "PackingCode", "ItemCode", "Lot", "Status" }, - unique: true, - filter: "[Lot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptNote_Number", - table: "Store_UnplannedReceiptNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueRequestDetail_Number_PackingCode_ItemCode_Lot_Status", - table: "Store_UnplannedIssueRequestDetail", - columns: new[] { "Number", "PackingCode", "ItemCode", "Lot", "Status" }, - unique: true, - filter: "[Lot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueRequest_Number", - table: "Store_UnplannedIssueRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueNoteDetail_Number_PackingCode_ItemCode_Lot_Status", - table: "Store_UnplannedIssueNoteDetail", - columns: new[] { "Number", "PackingCode", "ItemCode", "Lot", "Status" }, - unique: true, - filter: "[Lot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueNote_Number", - table: "Store_UnplannedIssueNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferRequest_Number", - table: "Store_TransferRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferNote_Number", - table: "Store_TransferNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_SupplierAsn_Number", - table: "Store_SupplierAsn", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ScrapNoteDetail_Number_ItemCode_FromPackingCode_FromLocationCode_ToLocationCode_FromLot_FromStatus", - table: "Store_ScrapNoteDetail", - columns: new[] { "Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ScrapNote_Number", - table: "Store_ScrapNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_SaleOrder_Number", - table: "Store_SaleOrder", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_RecycledMaterialReceiptNote_Number", - table: "Store_RecycledMaterialReceiptNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ReceiptAbnormalNote_AsnNumber_Number_SupplierCode_ReceiptNumber", - table: "Store_ReceiptAbnormalNote", - columns: new[] { "AsnNumber", "Number", "SupplierCode", "ReceiptNumber" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayRequest_Number", - table: "Store_PutawayRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode_ToPackingCode", - table: "Store_PutawayNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayNote_Number", - table: "Store_PutawayNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReturnRequest_Number", - table: "Store_PurchaseReturnRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReturnNote_Number", - table: "Store_PurchaseReturnNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptNote_Number", - table: "Store_PurchaseReceiptNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseOrder_Number", - table: "Store_PurchaseOrder", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleRequest_Number", - table: "Store_ProductRecycleRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleNote_Number", - table: "Store_ProductRecycleNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptRequestDetail_Number_ItemCode_LocationCode", - table: "Store_ProductReceiptRequestDetail", - columns: new[] { "Number", "ItemCode", "LocationCode" }, - unique: true, - filter: "[LocationCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptRequest_Number", - table: "Store_ProductReceiptRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptNoteDetail_Number_ItemCode_PackingCode_Lot_Status", - table: "Store_ProductReceiptNoteDetail", - columns: new[] { "Number", "ItemCode", "PackingCode", "Lot", "Status" }, - unique: true, - filter: "[Lot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptNote_Number", - table: "Store_ProductReceiptNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductL7PartsNote_Number", - table: "Store_ProductL7PartsNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnRequest_Number", - table: "Store_ProductionReturnRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnNoteDetail_Number_ItemCode_FromPackingCode_ToPackingCode_FromLocationCode_ToLocationCode", - table: "Store_ProductionReturnNoteDetail", - columns: new[] { "Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnNote_Number", - table: "Store_ProductionReturnNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionPlan_Number", - table: "Store_ProductionPlan", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PreparationPlan_Number", - table: "Store_PreparationPlan", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_OfflineSettlementNote_Number", - table: "Store_OfflineSettlementNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_MaterialRequest_Number", - table: "Store_MaterialRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_JisProductReceiptNote_Number", - table: "Store_JisProductReceiptNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_JisDeliverNote_Number", - table: "Store_JisDeliverNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ItemTransformRequest_Number", - table: "Store_ItemTransformRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ItemTransformNote_Number", - table: "Store_ItemTransformNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_IssueNote_Number", - table: "Store_IssueNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_IsolationNote_Number", - table: "Store_IsolationNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InventoryTransferNote_Number", - table: "Store_InventoryTransferNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectRequest_Number", - table: "Store_InspectRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectNote_Number", - table: "Store_InspectNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectAbnormalNote_Number", - table: "Store_InspectAbnormalNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverRequestDetail_Number_ItemCode", - table: "Store_DeliverRequestDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverRequest_Number", - table: "Store_DeliverRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverPlan_Number", - table: "Store_DeliverPlan", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverNoteDetail_Number_ItemCode_FromPackingCode_FromLot_FromLocationCode_ToLocationCode", - table: "Store_DeliverNoteDetail", - columns: new[] { "Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverNote_Number", - table: "Store_DeliverNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerReturnNote_Number", - table: "Store_CustomerReturnNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerAsn_Number", - table: "Store_CustomerAsn", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountPlan_Number", - table: "Store_CountPlan", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountNote_Number", - table: "Store_CountNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountAdjustNoteDetail_Number_CountLabel_ItemCode_LocationCode_Lot_Status_PackingCode", - table: "Store_CountAdjustNoteDetail", - columns: new[] { "Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode" }, - unique: true, - filter: "[Lot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountAdjustNote_Number", - table: "Store_CountAdjustNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ContainerBindNote_Number", - table: "Store_ContainerBindNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_BackFlushNote_Number", - table: "Store_BackFlushNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptRequest_Number", - table: "Store_PurchaseReceiptRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountAdjustRequest_Number", - table: "Store_CountAdjustRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountAdjustRequestDetail_MasterID", - table: "Store_CountAdjustRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountAdjustRequestDetail_Number_ItemCode_LocationCode_Lot_Status_PackingCode", - table: "Store_CountAdjustRequestDetail", - columns: new[] { "Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode" }, - unique: true, - filter: "[Lot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_InventoryInitialNote_Number", - table: "Store_InventoryInitialNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InventoryInitialNoteDetail_MasterID", - table: "Store_InventoryInitialNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_InventoryInitialNoteDetail_Number_PackingCode_ItemCode_Lot_Status", - table: "Store_InventoryInitialNoteDetail", - columns: new[] { "Number", "PackingCode", "ItemCode", "Lot", "Status" }, - unique: true, - filter: "[Lot] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_NoOkConvertOkNote_Number", - table: "Store_NoOkConvertOkNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_NoOkConvertOkNoteDetail_MasterID", - table: "Store_NoOkConvertOkNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_NoOkConvertOkNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_NoOkConvertOkNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleMaterialDetail_MasterID", - table: "Store_ProductRecycleMaterialDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleMaterialDetail_Number_ProductItemCode_ItemCode", - table: "Store_ProductRecycleMaterialDetail", - columns: new[] { "Number", "ProductItemCode", "ItemCode" }); - - migrationBuilder.CreateIndex( - name: "IX_Store_ScrapRequest_Number", - table: "Store_ScrapRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ScrapRequestDetail_MasterID", - table: "Store_ScrapRequestDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ScrapRequestDetail_Number_ItemCode_LocationCode", - table: "Store_ScrapRequestDetail", - columns: new[] { "Number", "ItemCode", "LocationCode" }, - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropTable( - name: "Store_ScrapRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_CountAdjustRequest"); - - migrationBuilder.DropTable( - name: "Store_InventoryInitialNote"); - - migrationBuilder.DropTable( - name: "Store_NoOkConvertOkNote"); - - migrationBuilder.DropTable( - name: "Store_ScrapRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_WorkOrder_Number", - table: "Store_WorkOrder"); - - migrationBuilder.DropIndex( - name: "IX_Store_WarehouseTransferNote_Number", - table: "Store_WarehouseTransferNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedReceiptRequestDetail_Number_PackingCode_ItemCode_Lot_Status", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedReceiptRequest_Number", - table: "Store_UnplannedReceiptRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedReceiptNoteDetail_Number_PackingCode_ItemCode_Lot_Status", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedReceiptNote_Number", - table: "Store_UnplannedReceiptNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedIssueRequestDetail_Number_PackingCode_ItemCode_Lot_Status", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedIssueRequest_Number", - table: "Store_UnplannedIssueRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedIssueNoteDetail_Number_PackingCode_ItemCode_Lot_Status", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_UnplannedIssueNote_Number", - table: "Store_UnplannedIssueNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_TransferRequest_Number", - table: "Store_TransferRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_TransferNote_Number", - table: "Store_TransferNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_SupplierAsn_Number", - table: "Store_SupplierAsn"); - - migrationBuilder.DropIndex( - name: "IX_Store_ScrapNoteDetail_Number_ItemCode_FromPackingCode_FromLocationCode_ToLocationCode_FromLot_FromStatus", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_ScrapNote_Number", - table: "Store_ScrapNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_SaleOrder_Number", - table: "Store_SaleOrder"); - - migrationBuilder.DropIndex( - name: "IX_Store_RecycledMaterialReceiptNote_Number", - table: "Store_RecycledMaterialReceiptNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ReceiptAbnormalNote_AsnNumber_Number_SupplierCode_ReceiptNumber", - table: "Store_ReceiptAbnormalNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_PutawayRequest_Number", - table: "Store_PutawayRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_PutawayNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode_ToPackingCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_PutawayNote_Number", - table: "Store_PutawayNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_PurchaseReturnRequest_Number", - table: "Store_PurchaseReturnRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_PurchaseReturnNote_Number", - table: "Store_PurchaseReturnNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_PurchaseReceiptNote_Number", - table: "Store_PurchaseReceiptNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_PurchaseOrder_Number", - table: "Store_PurchaseOrder"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductRecycleRequest_Number", - table: "Store_ProductRecycleRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductRecycleNote_Number", - table: "Store_ProductRecycleNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductReceiptRequestDetail_Number_ItemCode_LocationCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductReceiptRequest_Number", - table: "Store_ProductReceiptRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductReceiptNoteDetail_Number_ItemCode_PackingCode_Lot_Status", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductReceiptNote_Number", - table: "Store_ProductReceiptNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductL7PartsNote_Number", - table: "Store_ProductL7PartsNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductionReturnRequest_Number", - table: "Store_ProductionReturnRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductionReturnNoteDetail_Number_ItemCode_FromPackingCode_ToPackingCode_FromLocationCode_ToLocationCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductionReturnNote_Number", - table: "Store_ProductionReturnNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductionPlan_Number", - table: "Store_ProductionPlan"); - - migrationBuilder.DropIndex( - name: "IX_Store_PreparationPlan_Number", - table: "Store_PreparationPlan"); - - migrationBuilder.DropIndex( - name: "IX_Store_OfflineSettlementNote_Number", - table: "Store_OfflineSettlementNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_MaterialRequest_Number", - table: "Store_MaterialRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_JisProductReceiptNote_Number", - table: "Store_JisProductReceiptNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_JisDeliverNote_Number", - table: "Store_JisDeliverNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ItemTransformRequest_Number", - table: "Store_ItemTransformRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_ItemTransformNote_Number", - table: "Store_ItemTransformNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_IssueNote_Number", - table: "Store_IssueNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_IsolationNote_Number", - table: "Store_IsolationNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_InventoryTransferNote_Number", - table: "Store_InventoryTransferNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_InspectRequest_Number", - table: "Store_InspectRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_InspectNote_Number", - table: "Store_InspectNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_InspectAbnormalNote_Number", - table: "Store_InspectAbnormalNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_DeliverRequestDetail_Number_ItemCode", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_DeliverRequest_Number", - table: "Store_DeliverRequest"); - - migrationBuilder.DropIndex( - name: "IX_Store_DeliverPlan_Number", - table: "Store_DeliverPlan"); - - migrationBuilder.DropIndex( - name: "IX_Store_DeliverNoteDetail_Number_ItemCode_FromPackingCode_FromLot_FromLocationCode_ToLocationCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_DeliverNote_Number", - table: "Store_DeliverNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_CustomerReturnNote_Number", - table: "Store_CustomerReturnNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_CustomerAsn_Number", - table: "Store_CustomerAsn"); - - migrationBuilder.DropIndex( - name: "IX_Store_CountPlan_Number", - table: "Store_CountPlan"); - - migrationBuilder.DropIndex( - name: "IX_Store_CountNote_Number", - table: "Store_CountNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_CountAdjustNoteDetail_Number_CountLabel_ItemCode_LocationCode_Lot_Status_PackingCode", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_CountAdjustNote_Number", - table: "Store_CountAdjustNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_ContainerBindNote_Number", - table: "Store_ContainerBindNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_BackFlushNote_Number", - table: "Store_BackFlushNote"); - - migrationBuilder.DropIndex( - name: "IX_Store_PurchaseReceiptRequest_Number", - table: "Store_PurchaseReceiptRequest"); - - migrationBuilder.DropColumn( - name: "Type", - table: "Store_TransferRequest"); - - migrationBuilder.DropColumn( - name: "ConfirmTime", - table: "Store_TransferNote"); - - migrationBuilder.DropColumn( - name: "Type", - table: "Store_TransferNote"); - - migrationBuilder.DropColumn( - name: "PlanUserCode", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "CreateType", - table: "Store_SupplierAsn"); - - migrationBuilder.DropColumn( - name: "PlanUserCode", - table: "Store_SupplierAsn"); - - migrationBuilder.DropColumn( - name: "ScrapRequestNumber", - table: "Store_ScrapNote"); - - migrationBuilder.DropColumn( - name: "FromContainerCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLot", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromPackingCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromStatus", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWarehouseCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledBatch_ArriveDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledBatch_ExpireDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledBatch_ProduceDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledBatch_SupplierBatch", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledLocationCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledLocation_Area", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledLocation_ErpCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledLocation_Group", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty_Qty", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty_Uom", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendBatch_ArriveDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendBatch_ExpireDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendBatch_ProduceDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendBatch_SupplierBatch", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLocationCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLocation_Area", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLocation_ErpCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLocation_Group", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty_Qty", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty_Uom", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToContainerCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLot", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToPackingCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToStatus", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWarehouseCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RequestNumber", - table: "Store_PutawayRequest"); - - migrationBuilder.DropColumn( - name: "JobNumber", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "Worker", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "Type", - table: "Store_PutawayNote"); - - migrationBuilder.DropColumn( - name: "RecommendErpCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "PutAwayQty", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "ReceivedQty", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "ReturnedQty", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "ShippedQty", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "Shift", - table: "Store_ProductRecycleRequest"); - - migrationBuilder.DropColumn( - name: "Workshop", - table: "Store_ProductRecycleRequest"); - - migrationBuilder.DropColumn( - name: "Shift", - table: "Store_ProductRecycleNote"); - - migrationBuilder.DropColumn( - name: "Workshop", - table: "Store_ProductRecycleNote"); - - migrationBuilder.DropColumn( - name: "LocationCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "RawArea", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "ReturnQty", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Type", - table: "Store_ProductReceiptRequest"); - - migrationBuilder.DropColumn( - name: "RawArea", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ReturnQty", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ProductReceiptRequestNumber", - table: "Store_ProductReceiptNote"); - - migrationBuilder.DropColumn( - name: "Type", - table: "Store_ProductReceiptNote"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "Type", - table: "Store_MaterialRequest"); - - migrationBuilder.DropColumn( - name: "UseOnTheWayLocation", - table: "Store_MaterialRequest"); - - migrationBuilder.DropColumn( - name: "OnTheWayLocationCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ConfirmTime", - table: "Store_IssueNote"); - - migrationBuilder.DropColumn( - name: "Confirmed", - table: "Store_IssueNote"); - - migrationBuilder.DropColumn( - name: "RequestNumber", - table: "Store_IssueNote"); - - migrationBuilder.DropColumn( - name: "RequestType", - table: "Store_IssueNote"); - - migrationBuilder.DropColumn( - name: "UseOnTheWayLocation", - table: "Store_IssueNote"); - - migrationBuilder.DropColumn( - name: "AreaCode", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropColumn( - name: "DeliverTime", - table: "Store_DeliverRequest"); - - migrationBuilder.DropColumn( - name: "ExtraProperties", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "DeliverPlanNumber", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "DeliverRequestNumber", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "DeliverRequestType", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "DeliverTime", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "ToLocationCode", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "JsonInventoryStatus", - table: "Store_CountPlan"); - - migrationBuilder.DropColumn( - name: "JsonItemCodes", - table: "Store_CountPlan"); - - migrationBuilder.DropColumn( - name: "JsonLocationCodes", - table: "Store_CountPlan"); - - migrationBuilder.DropColumn( - name: "RequestType", - table: "Store_CountPlan"); - - migrationBuilder.DropColumn( - name: "CountAdjustRequestNumber", - table: "Store_CountAdjustNote"); - - migrationBuilder.DropColumn( - name: "IsAdjusted", - table: "Store_CountAdjustNote"); - - migrationBuilder.DropColumn( - name: "JobNumber", - table: "Store_CountAdjustNote"); - - migrationBuilder.DropColumn( - name: "Type", - table: "Store_CountAdjustNote"); - - migrationBuilder.DropColumn( - name: "RecommendErpCode", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.RenameColumn( - name: "UseOnTheWayLocation", - table: "Store_TransferRequest", - newName: "NeedInTransitLocation"); - - migrationBuilder.RenameColumn( - name: "OnTheWayLocationCode", - table: "Store_TransferNoteDetail", - newName: "InTransitLocation"); - - migrationBuilder.RenameColumn( - name: "UseOnTheWayLocation", - table: "Store_TransferNote", - newName: "NeedInTransitLocation"); - - migrationBuilder.RenameColumn( - name: "Confirmed", - table: "Store_TransferNote", - newName: "Adjusted"); - - migrationBuilder.RenameColumn( - name: "RecommendErpCode", - table: "Store_SupplierAsnDetail", - newName: "LocationErpCode"); - - migrationBuilder.RenameColumn( - name: "Type", - table: "Store_PutawayRequest", - newName: "PutawayType"); - - migrationBuilder.RenameColumn( - name: "PutawayMode", - table: "Store_PutawayRequest", - newName: "PutawayJobType"); - - migrationBuilder.RenameColumn( - name: "RequestNumber", - table: "Store_ProductRecycleNote", - newName: "PRRequestNumber"); - - migrationBuilder.RenameColumn( - name: "ToLocation_Group", - table: "Store_MaterialRequestDetail", - newName: "Location_Group"); - - migrationBuilder.RenameColumn( - name: "ToLocation_ErpCode", - table: "Store_MaterialRequestDetail", - newName: "Location_ErpCode"); - - migrationBuilder.RenameColumn( - name: "ToLocation_Area", - table: "Store_MaterialRequestDetail", - newName: "Location_Area"); - - migrationBuilder.RenameColumn( - name: "DeliverRequestType", - table: "Store_DeliverRequest", - newName: "DeliverType"); - - migrationBuilder.RenameColumn( - name: "CustomerCode", - table: "Store_DeliverNote", - newName: "Customer"); - - migrationBuilder.RenameColumn( - name: "TransInOut", - table: "Store_CountAdjustNoteDetail", - newName: "Type"); - - migrationBuilder.AlterColumn( - name: "RawQty_Uom", - table: "Store_WorkOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_WorkOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_WorkOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_WorkOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_WorkOrder", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_WorkOrder", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_WorkOrder", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_WorkOrder", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_WarehouseTransferNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_UnplannedReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_UnplannedReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_UnplannedIssueRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_UnplannedIssueNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromPackingCode", - table: "Store_TransferRequestDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "InTransitLocation", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_TransferRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "TransferType", - table: "Store_TransferRequest", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_TransferNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "TransferType", - table: "Store_TransferNote", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Phone", - table: "Store_SupplierAsn", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Name", - table: "Store_SupplierAsn", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Email", - table: "Store_SupplierAsn", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_SupplierAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLot", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ScrapNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_SaleOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_SaleOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_SaleOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_SaleOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_SaleOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustomerPack_PackUom", - table: "Store_SaleOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Phone", - table: "Store_SaleOrder", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Name", - table: "Store_SaleOrder", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Email", - table: "Store_SaleOrder", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_SaleOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_RecycledMaterialReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ReceiptAbnormalNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InventoryQty_Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_PutawayRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToPackingCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_PutawayNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_PurchaseReturnRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_PurchaseReturnNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_PurchaseReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Phone", - table: "Store_PurchaseOrder", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Name", - table: "Store_PurchaseOrder", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Email", - table: "Store_PurchaseOrder", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_PurchaseOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "RawLocation_Group", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RawLocation_ErpCode", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RawLocation_Area", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ProductRecycleRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "BomVersion", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RawLocationCode", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RawLocation_Area", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RawLocation_ErpCode", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RawLocation_Group", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ProductRecycleNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Workshop", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Team", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Shift", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProdLine", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RawLocation", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProdLine", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "WorkShop", - table: "Store_ProductReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ProductReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ProductL7PartsNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ProductionReturnRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToPackingCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ProductionReturnNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "PlanQty_Uom", - table: "Store_ProductionPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ProductionPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ProductionPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ProductionPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductionPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ProductionPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PreparationPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PreparationPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PreparationPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PreparationPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PreparationPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_PreparationPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_OfflineSettlementNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_MaterialRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_JisProductReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_JisDeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToQty_Uom", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Name", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Desc2", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Desc1", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToBatch_SupplierBatch", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromQty_Uom", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromBatch_SupplierBatch", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ItemTransformRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToQty_Uom", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Name", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Desc2", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItem_Desc1", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToBatch_SupplierBatch", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromQty_Uom", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromBatch_SupplierBatch", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ItemTransformNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_IssueNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_IsolationNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_InventoryTransferNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_InspectRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Phone", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Name", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Email", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Phone", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Name", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InspectUser_Email", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_InspectNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_InspectAbnormalNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_DeliverRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_DeliverRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_DeliverRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_DeliverRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_DeliverRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ExpiredTime", - table: "Store_DeliverRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "ToLocationCode", - table: "Store_DeliverRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "DeliverPlanNumber", - table: "Store_DeliverRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "CustomerAddressCode", - table: "Store_DeliverRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_DeliverRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_DeliverPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_DeliverPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_DeliverPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_DeliverPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_DeliverPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_DeliverPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToPackingCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLot", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromPackingCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLot", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "DeliverTime", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "ExpiredTime", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AlterColumn( - name: "CustomerAddressCode", - table: "Store_DeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_DeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocation_Group", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_ErpCode", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocation_Area", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Group", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_ErpCode", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocation_Area", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_CustomerReturnNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_CustomerAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_CustomerAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_CustomerAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_CustomerAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_CustomerAsnDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Phone", - table: "Store_CustomerAsn", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Name", - table: "Store_CustomerAsn", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Contacts_Email", - table: "Store_CustomerAsn", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_CustomerAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RepeatCount_Operator", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RepeatCount_Description", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InventoryQty_Uom", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FirstCount_Operator", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FirstCount_Description", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AuditCount_Operator", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AuditCount_Description", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_CountPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RepeatCount_Operator", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "RepeatCount_Description", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InventoryQty_Uom", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FirstCount_Operator", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FirstCount_Description", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AuditCount_Operator", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "AuditCount_Description", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_CountNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "InventoryQty_Uom", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "JobNumber", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_CountAdjustNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_ContainerBindNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_BackFlushNote", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Group", - table: "Store_BackFlushNote", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_ErpCode", - table: "Store_BackFlushNote", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Location_Area", - table: "Store_BackFlushNote", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_BackFlushNote", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_BackFlushNote", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_BackFlushNote", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_BackFlushNote", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Uom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Name", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc2", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Item_Desc1", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(1024)", - oldMaxLength: 1024, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Company", - table: "Store_PurchaseReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.CreateIndex( - name: "IX_Store_WorkOrder_Number_Company", - table: "Store_WorkOrder", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_WarehouseTransferNote_Number_Company", - table: "Store_WarehouseTransferNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptRequestDetail_Number_ItemCode", - table: "Store_UnplannedReceiptRequestDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptRequest_Company_Number", - table: "Store_UnplannedReceiptRequest", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptNoteDetail_Number_PackingCode", - table: "Store_UnplannedReceiptNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedReceiptNote_Number_Company", - table: "Store_UnplannedReceiptNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueRequestDetail_Number_ItemCode", - table: "Store_UnplannedIssueRequestDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueRequest_Company_Number", - table: "Store_UnplannedIssueRequest", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueNoteDetail_Number_PackingCode", - table: "Store_UnplannedIssueNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_UnplannedIssueNote_Number_Company", - table: "Store_UnplannedIssueNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferRequestDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode_FromStatus_ToStatus", - table: "Store_TransferRequestDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferRequest_Number_Company", - table: "Store_TransferRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_TransferNote_Number_Company", - table: "Store_TransferNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_SupplierAsn_Number_Company", - table: "Store_SupplierAsn", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ScrapNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_ScrapNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ScrapNote_Number_Company", - table: "Store_ScrapNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_SaleOrder_Number_Company", - table: "Store_SaleOrder", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_RecycledMaterialReceiptNote_Number_Company", - table: "Store_RecycledMaterialReceiptNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ReceiptAbnormalNote_AsnNumber_Number_Company_SupplierCode_ReceiptNumber", - table: "Store_ReceiptAbnormalNote", - columns: new[] { "AsnNumber", "Number", "Company", "SupplierCode", "ReceiptNumber" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayRequest_Number_Company", - table: "Store_PutawayRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_PutawayNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_PutawayNote_Number_Company", - table: "Store_PutawayNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReturnRequest_Number_Company", - table: "Store_PurchaseReturnRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReturnNote_Number_Company", - table: "Store_PurchaseReturnNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptNote_Number_Company", - table: "Store_PurchaseReceiptNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseOrder_Number_Company", - table: "Store_PurchaseOrder", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleRequest_Number_Company", - table: "Store_ProductRecycleRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductRecycleNote_Number_Company", - table: "Store_ProductRecycleNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptRequestDetail_Number_ItemCode", - table: "Store_ProductReceiptRequestDetail", - columns: new[] { "Number", "ItemCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptRequest_Number_Company", - table: "Store_ProductReceiptRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptNoteDetail_Number_PackingCode", - table: "Store_ProductReceiptNoteDetail", - columns: new[] { "Number", "PackingCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptNote_Company_Number", - table: "Store_ProductReceiptNote", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductL7PartsNote_Company_Number", - table: "Store_ProductL7PartsNote", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnRequest_Company_Number", - table: "Store_ProductionReturnRequest", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_ProductionReturnNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnNote_Number_Company", - table: "Store_ProductionReturnNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionPlan_Number_Company", - table: "Store_ProductionPlan", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PreparationPlan_Number_Company", - table: "Store_PreparationPlan", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_OfflineSettlementNote_Number_Company", - table: "Store_OfflineSettlementNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_MaterialRequest_Company_Number", - table: "Store_MaterialRequest", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_JisProductReceiptNote_Company_Number", - table: "Store_JisProductReceiptNote", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_JisDeliverNote_Company_Number", - table: "Store_JisDeliverNote", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ItemTransformRequest_Number_Company", - table: "Store_ItemTransformRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ItemTransformNote_Number_Company", - table: "Store_ItemTransformNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_IssueNote_Number_Company", - table: "Store_IssueNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_IsolationNote_Number_Company", - table: "Store_IsolationNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InventoryTransferNote_Number_Company", - table: "Store_InventoryTransferNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectRequest_Number_Company", - table: "Store_InspectRequest", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectNote_Number_Company", - table: "Store_InspectNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_InspectAbnormalNote_Number_Company", - table: "Store_InspectAbnormalNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverRequestDetail_Number_ItemCode_ExpiredTime_ToLocationCode", - table: "Store_DeliverRequestDetail", - columns: new[] { "Number", "ItemCode", "ExpiredTime", "ToLocationCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverRequest_Company_Number", - table: "Store_DeliverRequest", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverPlan_Number_Company", - table: "Store_DeliverPlan", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", - table: "Store_DeliverNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_DeliverNote_Company_Number", - table: "Store_DeliverNote", - columns: new[] { "Company", "Number" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerReturnNote_Number_Company", - table: "Store_CustomerReturnNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CustomerAsn_Number_Company", - table: "Store_CustomerAsn", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountPlan_Number_Company", - table: "Store_CountPlan", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountNote_Number_Company", - table: "Store_CountNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountAdjustNoteDetail_Number_CountLabel", - table: "Store_CountAdjustNoteDetail", - columns: new[] { "Number", "CountLabel" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_CountAdjustNote_Number_Company", - table: "Store_CountAdjustNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ContainerBindNote_Number_Company", - table: "Store_ContainerBindNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_BackFlushNote_Number_Company", - table: "Store_BackFlushNote", - columns: new[] { "Number", "Company" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_PurchaseReceiptRequest_Number_Company", - table: "Store_PurchaseReceiptRequest", - columns: new[] { "Number", "Company" }, - unique: true); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230105062711_RemoveWarehouseCodeInDetail.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230105062711_RemoveWarehouseCodeInDetail.Designer.cs deleted file mode 100644 index 86a7aa98c..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230105062711_RemoveWarehouseCodeInDetail.Designer.cs +++ /dev/null @@ -1,19525 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230105062711_RemoveWarehouseCodeInDetail")] - partial class RemoveWarehouseCodeInDetail - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - 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("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - 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("Lot") - .HasColumnType("nvarchar(450)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RequestType") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("DockCode") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveUom") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RawLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique() - .HasFilter("[LocationCode] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("HandledContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledLot") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("RecommendContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendLot") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateType") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .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") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "AuditCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "FirstCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "RepeatCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.Navigation("AuditCount"); - - b.Navigation("Batch"); - - b.Navigation("FirstCount"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RepeatCount"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "AuditCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "FirstCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "RepeatCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.Navigation("AuditCount"); - - b.Navigation("Batch"); - - b.Navigation("FirstCount"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RepeatCount"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CustomerAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CustomerAsnId"); - - b1.ToTable("Store_CustomerAsn"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("CustomerAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnId"); - - b1.ToTable("Store_CustomerAsn"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnId"); - }); - - b.Navigation("Contacts"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteId"); - - b1.ToTable("Store_DeliverNote"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteId"); - }); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("InspectAbnormalNoteDetailId", "PhotoID"); - - b1.ToTable("Store_InspectAbnormalNoteDetailPhoto", (string)null); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Photos"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("InspectNoteDetailId", "PhotoID"); - - b1.ToTable("Store_InspectNoteDetailPhoto", (string)null); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InspectUser"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Photos"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InspectUser"); - - b.Navigation("Item"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ReceiveQty", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("ReceiveQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "FromQty", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ToQty", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("FromQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - - b.Navigation("ToQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "FromQty", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "ToQty", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("FromQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - - b.Navigation("ToQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "PlanQty", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("PlanQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductL7PartsNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductL7PartsNoteDetailId"); - - b1.ToTable("Store_ProductL7PartsNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductL7PartsNoteDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ProductItem", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ProductItem"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "RawLocation", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("RawLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("PurchaseOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderId"); - - b1.ToTable("Store_PurchaseOrder"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "HandledBatch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "HandledLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "HandledQty", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "InventoryQty", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "RecommendBatch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "RecommendLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RecommendQty", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("HandledBatch"); - - b.Navigation("HandledLocation"); - - b.Navigation("HandledQty"); - - b.Navigation("InventoryQty"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("RecommendBatch"); - - b.Navigation("RecommendLocation"); - - b.Navigation("RecommendQty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("ReceiptAbnormalNoteDetailId", "PhotoID"); - - b1.ToTable("Store_ReceiptAbnormalNotePhoto", (string)null); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Photos"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("SaleOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderId"); - - b1.ToTable("Store_SaleOrder"); - - b1.WithOwner() - .HasForeignKey("SaleOrderId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "CustomerPack", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.Navigation("CustomerPack"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("SupplierAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnId"); - - b1.ToTable("Store_SupplierAsn"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "SupplierPack", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("SupplierPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.PackInfo", "StdPack", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PackQty") - .HasColumnType("decimal(18,6)"); - - b1.Property("PackUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Qty"); - - b.Navigation("StdPack"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "Qty", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.Navigation("Item"); - - b.Navigation("Qty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.UomQty", "RawQty", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("RawQty"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230105062711_RemoveWarehouseCodeInDetail.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230105062711_RemoveWarehouseCodeInDetail.cs deleted file mode 100644 index d9e2fd363..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230105062711_RemoveWarehouseCodeInDetail.cs +++ /dev/null @@ -1,406 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class RemoveWarehouseCodeInDetail : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductL7PartsNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InspectAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ContainerBindNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptRequestDetail"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - nullable: false, - defaultValue: ""); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230106060036_SplitUomQtyAndPackInfo.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230106060036_SplitUomQtyAndPackInfo.Designer.cs deleted file mode 100644 index 3530da5d5..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230106060036_SplitUomQtyAndPackInfo.Designer.cs +++ /dev/null @@ -1,17310 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230106060036_SplitUomQtyAndPackInfo")] - partial class SplitUomQtyAndPackInfo - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - 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("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - 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("Lot") - .HasColumnType("nvarchar(450)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RequestType") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("DockCode") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique() - .HasFilter("[LocationCode] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateType") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "AuditCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "FirstCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "RepeatCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.Navigation("AuditCount"); - - b.Navigation("Batch"); - - b.Navigation("FirstCount"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RepeatCount"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "AuditCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "FirstCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "RepeatCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.Navigation("AuditCount"); - - b.Navigation("Batch"); - - b.Navigation("FirstCount"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RepeatCount"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.TimeRange", "TimeRange", b1 => - { - b1.Property("CustomerAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("BeginTime") - .HasColumnType("datetime2"); - - b1.Property("EndTime") - .HasColumnType("datetime2"); - - b1.HasKey("CustomerAsnId"); - - b1.ToTable("Store_CustomerAsn"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("CustomerAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnId"); - - b1.ToTable("Store_CustomerAsn"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnId"); - }); - - b.Navigation("Contacts"); - - b.Navigation("TimeRange"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteId"); - - b1.ToTable("Store_DeliverNote"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteId"); - }); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("InspectAbnormalNoteDetailId", "PhotoID"); - - b1.ToTable("Store_InspectAbnormalNoteDetailPhoto", (string)null); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Photos"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("InspectNoteDetailId", "PhotoID"); - - b1.ToTable("Store_InspectNoteDetailPhoto", (string)null); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InspectUser"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Photos"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InspectUser"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductL7PartsNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductL7PartsNoteDetailId"); - - b1.ToTable("Store_ProductL7PartsNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductL7PartsNoteDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ProductItem", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ProductItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "RawLocation", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RawLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("PurchaseOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderId"); - - b1.ToTable("Store_PurchaseOrder"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsMany("Win_in.Sfs.Shared.Domain.Photo", "Photos", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("PhotoID") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b1.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b1.HasKey("ReceiptAbnormalNoteDetailId", "PhotoID"); - - b1.ToTable("Store_ReceiptAbnormalNotePhoto", (string)null); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("Photos"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("SaleOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderId"); - - b1.ToTable("Store_SaleOrder"); - - b1.WithOwner() - .HasForeignKey("SaleOrderId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("SupplierAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnId"); - - b1.ToTable("Store_SupplierAsn"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230106060036_SplitUomQtyAndPackInfo.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230106060036_SplitUomQtyAndPackInfo.cs deleted file mode 100644 index 46417b612..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230106060036_SplitUomQtyAndPackInfo.cs +++ /dev/null @@ -1,4618 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class SplitUomQtyAndPackInfo : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "RawQty_Qty", - table: "Store_WorkOrderDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "CustomerPack_PackQty", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "CustomerPack_PackUom", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledBatch_ArriveDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledBatch_ExpireDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledBatch_ProduceDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledBatch_SupplierBatch", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledLocationCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledLocation_Area", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledLocation_ErpCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledLocation_Group", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty_Qty", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty_Uom", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty_Qty", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty_Uom", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "Qty_Qty", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "Qty_Uom", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendBatch_ArriveDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendBatch_ExpireDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendBatch_ProduceDate", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendBatch_SupplierBatch", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLocationCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLocation_Area", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLocation_ErpCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLocation_Group", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "PlanQty_Qty", - table: "Store_ProductionPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_PreparationPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_PreparationPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromQty_Qty", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromQty_Uom", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToQty_Qty", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromQty_Qty", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromQty_Uom", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToQty_Qty", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "ReceiveQty_Qty", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "ReceiveQty_Qty", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "ReceiveUom", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "ReceiveQty_Qty", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "ReceiveQty_Qty", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_InspectAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_InspectAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_DeliverPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_DeliverPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_CustomerAsnDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_CustomerAsnDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty_Qty", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty_Qty", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty_Qty", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty_Uom", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty_Qty", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_ContainerBindNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_ContainerBindNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackQty", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackQty", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.RenameColumn( - name: "RawQty_Uom", - table: "Store_WorkOrderDetail", - newName: "RawUom"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_WorkOrder", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_WorkOrder", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_WarehouseTransferNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_WarehouseTransferNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_UnplannedReceiptRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_UnplannedReceiptRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_UnplannedReceiptNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_UnplannedReceiptNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_UnplannedIssueRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_UnplannedIssueRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_UnplannedIssueNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_UnplannedIssueNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_TransferRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_TransferRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_TransferNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_TransferNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_SupplierAsnDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_SupplierAsnDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ScrapRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ScrapRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ScrapNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ScrapNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_SaleOrderDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_SaleOrderDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "RecommendQty_Uom", - table: "Store_PutawayRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "RecommendQty_Qty", - table: "Store_PutawayRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_PutawayNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_PutawayNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_PurchaseReturnRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_PurchaseReturnRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_PurchaseReturnNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_PurchaseReturnNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_PurchaseReceiptNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_PurchaseReceiptNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_PurchaseOrderDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_PurchaseOrderDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ProductRecycleRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ProductRecycleRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ProductRecycleNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ProductRecycleNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ProductRecycleMaterialDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ProductRecycleMaterialDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ProductReceiptRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ProductReceiptRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ProductReceiptNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ProductReceiptNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ProductionReturnRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ProductionReturnRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ProductionReturnNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ProductionReturnNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "PlanQty_Uom", - table: "Store_ProductionPlanDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_PreparationPlanDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_PreparationPlanDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_OfflineSettlementNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_OfflineSettlementNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_NoOkConvertOkNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_NoOkConvertOkNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_MaterialRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_MaterialRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_JisProductReceiptNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_JisProductReceiptNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_JisDeliverNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_JisDeliverNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "ToQty_Uom", - table: "Store_ItemTransformRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "ToQty_Uom", - table: "Store_ItemTransformNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_IssueNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_IssueNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_IsolationNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_IsolationNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_InventoryTransferNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_InventoryTransferNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_InventoryInitialNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_InventoryInitialNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectRequestSummaryDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectNoteSummaryDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "ReceiveQty_Uom", - table: "Store_InspectNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_InspectAbnormalNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_InspectAbnormalNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_DeliverRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_DeliverRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_DeliverPlanDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_DeliverPlanDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_DeliverNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_DeliverNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_CustomerReturnNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_CustomerReturnNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_CustomerAsnDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_CustomerAsnDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "InventoryQty_Uom", - table: "Store_CountPlanDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "InventoryQty_Uom", - table: "Store_CountNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_CountAdjustRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_CountAdjustRequestDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "InventoryQty_Uom", - table: "Store_CountAdjustNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_ContainerBindNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_ContainerBindNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_BackFlushNoteDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_BackFlushNoteDetail", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_BackFlushNote", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_BackFlushNote", - newName: "Qty"); - - migrationBuilder.RenameColumn( - name: "Qty_Uom", - table: "Store_PurchaseReceiptRequestDetail", - newName: "Uom"); - - migrationBuilder.RenameColumn( - name: "Qty_Qty", - table: "Store_PurchaseReceiptRequestDetail", - newName: "Qty"); - - migrationBuilder.AddColumn( - name: "RawQty", - table: "Store_WorkOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_WorkOrder", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_WarehouseTransferNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_WarehouseTransferNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_UnplannedReceiptRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_UnplannedReceiptRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_UnplannedReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_UnplannedReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_UnplannedIssueRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_UnplannedIssueRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_UnplannedIssueNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_UnplannedIssueNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_TransferRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_TransferRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_TransferNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_TransferNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_SupplierAsnDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_SupplierAsnDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "SupplierPackQty", - table: "Store_SupplierAsnDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "SupplierPackUom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ScrapRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_ScrapRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ScrapNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_ScrapNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_SaleOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPackQty", - table: "Store_SaleOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "CustomerPackUom", - table: "Store_SaleOrderDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_SaleOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ReceiptAbnormalNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_ReceiptAbnormalNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "InventoryQty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_PutawayNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_PutawayNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_PurchaseReturnRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_PurchaseReturnRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_PurchaseReturnNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_PurchaseReturnNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_PurchaseReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_PurchaseReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "SupplierPackQty", - table: "Store_PurchaseReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "SupplierPackUom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_PurchaseOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_PurchaseOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "SupplierPackQty", - table: "Store_PurchaseOrderDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "SupplierPackUom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ProductRecycleRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ProductRecycleNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_ProductRecycleNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ProductRecycleMaterialDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_ProductRecycleMaterialDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ProductReceiptRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_ProductReceiptRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_ProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ProductionReturnRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_ProductionReturnRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ProductionReturnNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_ProductionReturnNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "PlanQty", - table: "Store_ProductionPlanDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_PreparationPlanDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_PreparationPlanDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_OfflineSettlementNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_OfflineSettlementNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_NoOkConvertOkNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_NoOkConvertOkNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_MaterialRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_MaterialRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_JisProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_JisProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_JisDeliverNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_JisDeliverNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "FromQty", - table: "Store_ItemTransformRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ToQty", - table: "Store_ItemTransformRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "FromQty", - table: "Store_ItemTransformNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ToQty", - table: "Store_ItemTransformNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_IssueNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_IssueNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_IsolationNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_IsolationNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_InventoryTransferNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_InventoryTransferNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_InventoryInitialNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_InventoryInitialNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ReceiveQty", - table: "Store_InspectRequestSummaryDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_InspectRequestSummaryDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ReceiveQty", - table: "Store_InspectRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_InspectRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ReceiveQty", - table: "Store_InspectNoteSummaryDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_InspectNoteSummaryDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "ReceiveQty", - table: "Store_InspectNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_InspectNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_InspectAbnormalNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_InspectAbnormalNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_DeliverRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_DeliverRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_DeliverPlanDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_DeliverPlanDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_DeliverNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_DeliverNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_CustomerReturnNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_CustomerReturnNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_CustomerAsnDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_CustomerAsnDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "InventoryQty", - table: "Store_CountPlanDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_CountPlanDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "InventoryQty", - table: "Store_CountNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_CountNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_CountAdjustRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "InventoryQty", - table: "Store_CountAdjustRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_CountAdjustRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "InventoryQty", - table: "Store_CountAdjustNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_CountAdjustNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_ContainerBindNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_ContainerBindNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_BackFlushNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_BackFlushNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_BackFlushNote", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Qty", - table: "Store_PurchaseReceiptRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "StdPackQty", - table: "Store_PurchaseReceiptRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "SupplierPackQty", - table: "Store_PurchaseReceiptRequestDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "SupplierPackUom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "RawQty", - table: "Store_WorkOrderDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPackQty", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPackUom", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "CustomerPackQty", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "CustomerPackUom", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPackQty", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPackUom", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPackQty", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPackUom", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "PlanQty", - table: "Store_ProductionPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_PreparationPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromQty", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToQty", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromQty", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToQty", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "ReceiveQty", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "ReceiveQty", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "ReceiveQty", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "ReceiveQty", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_InspectAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_DeliverPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_CustomerAsnDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "InventoryQty", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_ContainerBindNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "StdPackQty", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPackQty", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "SupplierPackUom", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.RenameColumn( - name: "RawUom", - table: "Store_WorkOrderDetail", - newName: "RawQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_WorkOrder", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_WorkOrder", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_WarehouseTransferNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_WarehouseTransferNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_UnplannedReceiptRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_UnplannedReceiptRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_UnplannedReceiptNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_UnplannedReceiptNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_UnplannedIssueRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_UnplannedIssueRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_UnplannedIssueNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_UnplannedIssueNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_TransferRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_TransferRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_TransferNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_TransferNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_SupplierAsnDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_SupplierAsnDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ScrapRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ScrapRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ScrapNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ScrapNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_SaleOrderDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_SaleOrderDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_PutawayRequestDetail", - newName: "RecommendQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_PutawayRequestDetail", - newName: "RecommendQty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_PutawayNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_PutawayNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_PurchaseReturnRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_PurchaseReturnRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_PurchaseReturnNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_PurchaseReturnNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_PurchaseReceiptNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_PurchaseReceiptNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_PurchaseOrderDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_PurchaseOrderDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ProductRecycleRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ProductRecycleRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ProductRecycleNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ProductRecycleNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ProductRecycleMaterialDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ProductRecycleMaterialDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ProductReceiptRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ProductReceiptRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ProductReceiptNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ProductReceiptNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ProductionReturnRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ProductionReturnRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ProductionReturnNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ProductionReturnNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ProductionPlanDetail", - newName: "PlanQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_PreparationPlanDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_PreparationPlanDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_OfflineSettlementNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_OfflineSettlementNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_NoOkConvertOkNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_NoOkConvertOkNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_MaterialRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_MaterialRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_JisProductReceiptNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_JisProductReceiptNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_JisDeliverNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_JisDeliverNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ItemTransformRequestDetail", - newName: "ToQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ItemTransformNoteDetail", - newName: "ToQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_IssueNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_IssueNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_IsolationNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_IsolationNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_InventoryTransferNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_InventoryTransferNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_InventoryInitialNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_InventoryInitialNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_InspectRequestSummaryDetail", - newName: "ReceiveQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_InspectRequestDetail", - newName: "ReceiveQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_InspectNoteSummaryDetail", - newName: "ReceiveQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_InspectNoteDetail", - newName: "ReceiveQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_InspectAbnormalNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_InspectAbnormalNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_DeliverRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_DeliverRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_DeliverPlanDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_DeliverPlanDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_DeliverNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_DeliverNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_CustomerReturnNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_CustomerReturnNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_CustomerAsnDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_CustomerAsnDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_CountPlanDetail", - newName: "InventoryQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_CountNoteDetail", - newName: "InventoryQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_CountAdjustRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_CountAdjustRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_CountAdjustNoteDetail", - newName: "InventoryQty_Uom"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_ContainerBindNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_ContainerBindNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_BackFlushNoteDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_BackFlushNoteDetail", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_BackFlushNote", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_BackFlushNote", - newName: "Qty_Qty"); - - migrationBuilder.RenameColumn( - name: "Uom", - table: "Store_PurchaseReceiptRequestDetail", - newName: "Qty_Uom"); - - migrationBuilder.RenameColumn( - name: "Qty", - table: "Store_PurchaseReceiptRequestDetail", - newName: "Qty_Qty"); - - migrationBuilder.AddColumn( - name: "RawQty_Qty", - table: "Store_WorkOrderDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_WorkOrder", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_WarehouseTransferNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_WarehouseTransferNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_UnplannedReceiptRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_UnplannedReceiptRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_UnplannedReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_UnplannedReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_UnplannedIssueRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_UnplannedIssueRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_UnplannedIssueNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_UnplannedIssueNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_TransferRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_TransferRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_TransferNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_TransferNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_SupplierAsnDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_SupplierAsnDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_SupplierAsnDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ScrapRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_ScrapRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ScrapNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_ScrapNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_SaleOrderDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "CustomerPack_PackQty", - table: "Store_SaleOrderDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CustomerPack_PackUom", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_SaleOrderDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ReceiptAbnormalNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_ReceiptAbnormalNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "RecommendQty_Qty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "HandledBatch_ArriveDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledBatch_ExpireDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledBatch_ProduceDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledBatch_SupplierBatch", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLocationCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLocation_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLocation_ErpCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLocation_Group", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledQty_Qty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledQty_Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "InventoryQty_Qty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "InventoryQty_Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Qty_Qty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Qty_Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendBatch_ArriveDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendBatch_ExpireDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendBatch_ProduceDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendBatch_SupplierBatch", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLocationCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLocation_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLocation_ErpCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLocation_Group", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_PutawayRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_PutawayNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_PutawayNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_PutawayNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_PurchaseReturnRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_PurchaseReturnRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_PurchaseReturnNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_PurchaseReturnNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_PurchaseReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_PurchaseReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_PurchaseReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_PurchaseOrderDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_PurchaseOrderDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_PurchaseOrderDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ProductRecycleRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ProductRecycleNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_ProductRecycleNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ProductRecycleMaterialDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_ProductRecycleMaterialDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ProductReceiptRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_ProductReceiptRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_ProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ProductionReturnRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_ProductionReturnRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ProductionReturnNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_ProductionReturnNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "PlanQty_Qty", - table: "Store_ProductionPlanDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_PreparationPlanDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_PreparationPlanDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_PreparationPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_OfflineSettlementNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_OfflineSettlementNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_NoOkConvertOkNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_NoOkConvertOkNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_MaterialRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_MaterialRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_JisProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_JisProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_JisDeliverNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_JisDeliverNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromQty_Qty", - table: "Store_ItemTransformRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromQty_Uom", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToQty_Qty", - table: "Store_ItemTransformRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromQty_Qty", - table: "Store_ItemTransformNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromQty_Uom", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToQty_Qty", - table: "Store_ItemTransformNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_IssueNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_IssueNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_IsolationNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_IsolationNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_InventoryTransferNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_InventoryTransferNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_InventoryInitialNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_InventoryInitialNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ReceiveQty_Qty", - table: "Store_InspectRequestSummaryDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_InspectRequestSummaryDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_InspectRequestSummaryDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ReceiveQty_Qty", - table: "Store_InspectRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ReceiveUom", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_InspectRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_InspectRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ReceiveQty_Qty", - table: "Store_InspectNoteSummaryDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_InspectNoteSummaryDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_InspectNoteSummaryDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ReceiveQty_Qty", - table: "Store_InspectNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_InspectNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_InspectNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_InspectAbnormalNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_InspectAbnormalNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_DeliverRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_DeliverRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_DeliverRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_DeliverPlanDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_DeliverPlanDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_DeliverPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_DeliverNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_DeliverNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_CustomerReturnNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_CustomerReturnNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_CustomerAsnDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_CustomerAsnDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_CustomerAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "InventoryQty_Qty", - table: "Store_CountPlanDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_CountPlanDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "InventoryQty_Uom", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "InventoryQty_Qty", - table: "Store_CountNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_CountNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_CountAdjustRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "InventoryQty_Qty", - table: "Store_CountAdjustRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "InventoryQty_Uom", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_CountAdjustRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "InventoryQty_Qty", - table: "Store_CountAdjustNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_CountAdjustNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_ContainerBindNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_ContainerBindNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_BackFlushNoteDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_BackFlushNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_BackFlushNote", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AlterColumn( - name: "Qty_Qty", - table: "Store_PurchaseReceiptRequestDetail", - type: "decimal(18,6)", - nullable: true, - oldClrType: typeof(decimal), - oldType: "decimal(18,6)"); - - migrationBuilder.AddColumn( - name: "StdPack_PackQty", - table: "Store_PurchaseReceiptRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "StdPack_PackUom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackQty", - table: "Store_PurchaseReceiptRequestDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierPack_PackUom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109015238_FlatTimeRangeAndPhoto.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109015238_FlatTimeRangeAndPhoto.Designer.cs deleted file mode 100644 index 56c8d9f62..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109015238_FlatTimeRangeAndPhoto.Designer.cs +++ /dev/null @@ -1,17238 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230109015238_FlatTimeRangeAndPhoto")] - partial class FlatTimeRangeAndPhoto - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - 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("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - 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("Lot") - .HasColumnType("nvarchar(450)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RequestType") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - 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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique() - .HasFilter("[LocationCode] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreateType") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "AuditCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "FirstCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "RepeatCount", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.Navigation("AuditCount"); - - b.Navigation("Batch"); - - b.Navigation("FirstCount"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RepeatCount"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "AuditCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "FirstCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.CountResult", "RepeatCount", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Description") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Operator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b1.Property("Time") - .HasColumnType("datetime2"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.Navigation("AuditCount"); - - b.Navigation("Batch"); - - b.Navigation("FirstCount"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RepeatCount"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("CustomerAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnId"); - - b1.ToTable("Store_CustomerAsn"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteId"); - - b1.ToTable("Store_DeliverNote"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteId"); - }); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InspectUser"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "InspectUser", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("InspectUser"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductL7PartsNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductL7PartsNoteDetailId"); - - b1.ToTable("Store_ProductL7PartsNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductL7PartsNoteDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ProductItem", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ProductItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "RawLocation", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RawLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("PurchaseOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderId"); - - b1.ToTable("Store_PurchaseOrder"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("SaleOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderId"); - - b1.ToTable("Store_SaleOrder"); - - b1.WithOwner() - .HasForeignKey("SaleOrderId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Person", "Contacts", b1 => - { - b1.Property("SupplierAsnId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Email") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Phone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnId"); - - b1.ToTable("Store_SupplierAsn"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnId"); - }); - - b.Navigation("Contacts"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109015238_FlatTimeRangeAndPhoto.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109015238_FlatTimeRangeAndPhoto.cs deleted file mode 100644 index 0680fa8fd..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109015238_FlatTimeRangeAndPhoto.cs +++ /dev/null @@ -1,167 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class FlatTimeRangeAndPhoto : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Store_InspectAbnormalNoteDetailPhoto"); - - migrationBuilder.DropTable( - name: "Store_InspectNoteDetailPhoto"); - - migrationBuilder.DropTable( - name: "Store_ReceiptAbnormalNotePhoto"); - - migrationBuilder.RenameColumn( - name: "TimeRange_EndTime", - table: "Store_CustomerAsn", - newName: "EndTime"); - - migrationBuilder.RenameColumn( - name: "TimeRange_BeginTime", - table: "Store_CustomerAsn", - newName: "BeginTime"); - - migrationBuilder.AddColumn( - name: "Photos", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Photos", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Photos", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "EndTime", - table: "Store_CountPlan", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "BeginTime", - table: "Store_CountPlan", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "Photos", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "Photos", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "Photos", - table: "Store_InspectAbnormalNoteDetail"); - - migrationBuilder.RenameColumn( - name: "EndTime", - table: "Store_CustomerAsn", - newName: "TimeRange_EndTime"); - - migrationBuilder.RenameColumn( - name: "BeginTime", - table: "Store_CustomerAsn", - newName: "TimeRange_BeginTime"); - - migrationBuilder.AlterColumn( - name: "EndTime", - table: "Store_CountPlan", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "BeginTime", - table: "Store_CountPlan", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.CreateTable( - name: "Store_InspectAbnormalNoteDetailPhoto", - columns: table => new - { - InspectAbnormalNoteDetailId = table.Column(type: "uniqueidentifier", nullable: false), - PhotoID = table.Column(type: "uniqueidentifier", nullable: false), - MasterID = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectAbnormalNoteDetailPhoto", x => new { x.InspectAbnormalNoteDetailId, x.PhotoID }); - table.ForeignKey( - name: "FK_Store_InspectAbnormalNoteDetailPhoto_Store_InspectAbnormalNoteDetail_InspectAbnormalNoteDetailId", - column: x => x.InspectAbnormalNoteDetailId, - principalTable: "Store_InspectAbnormalNoteDetail", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_InspectNoteDetailPhoto", - columns: table => new - { - InspectNoteDetailId = table.Column(type: "uniqueidentifier", nullable: false), - PhotoID = table.Column(type: "uniqueidentifier", nullable: false), - MasterID = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_InspectNoteDetailPhoto", x => new { x.InspectNoteDetailId, x.PhotoID }); - table.ForeignKey( - name: "FK_Store_InspectNoteDetailPhoto_Store_InspectNoteDetail_InspectNoteDetailId", - column: x => x.InspectNoteDetailId, - principalTable: "Store_InspectNoteDetail", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_ReceiptAbnormalNotePhoto", - columns: table => new - { - ReceiptAbnormalNoteDetailId = table.Column(type: "uniqueidentifier", nullable: false), - PhotoID = table.Column(type: "uniqueidentifier", nullable: false), - MasterID = table.Column(type: "uniqueidentifier", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_ReceiptAbnormalNotePhoto", x => new { x.ReceiptAbnormalNoteDetailId, x.PhotoID }); - table.ForeignKey( - name: "FK_Store_ReceiptAbnormalNotePhoto_Store_ReceiptAbnormalNoteDetail_ReceiptAbnormalNoteDetailId", - column: x => x.ReceiptAbnormalNoteDetailId, - principalTable: "Store_ReceiptAbnormalNoteDetail", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109070330_FlatPersonCountResult.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109070330_FlatPersonCountResult.Designer.cs deleted file mode 100644 index 1f51cc617..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109070330_FlatPersonCountResult.Designer.cs +++ /dev/null @@ -1,17032 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230109070330_FlatPersonCountResult")] - partial class FlatPersonCountResult - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - 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("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - 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("Lot") - .HasColumnType("nvarchar(450)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RequestType") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocation") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique() - .HasFilter("[LocationCode] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateType") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteId"); - - b1.ToTable("Store_DeliverNote"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteId"); - }); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductL7PartsNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductL7PartsNoteDetailId"); - - b1.ToTable("Store_ProductL7PartsNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductL7PartsNoteDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ProductItem", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ProductItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "RawLocation", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("RawLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("Location"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "Location", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("Location"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "FromLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Location", "ToLocation", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Area") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("ErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.Property("Group") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("FromLocation"); - - b.Navigation("Item"); - - b.Navigation("ToLocation"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109070330_FlatPersonCountResult.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109070330_FlatPersonCountResult.cs deleted file mode 100644 index a010d82a6..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230109070330_FlatPersonCountResult.cs +++ /dev/null @@ -1,588 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class FlatPersonCountResult : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "InspectUser_Email", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "InspectUser_Name", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "InspectUser_Email", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "InspectUser_Name", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "AuditCount_Description", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "AuditCount_Qty", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "FirstCount_Description", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "FirstCount_Qty", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "RepeatCount_Description", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "RepeatCount_Qty", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "AuditCount_Description", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "AuditCount_Qty", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "FirstCount_Description", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "FirstCount_Qty", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "RepeatCount_Description", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "RepeatCount_Qty", - table: "Store_CountNoteDetail"); - - migrationBuilder.RenameColumn( - name: "Contacts_Phone", - table: "Store_SupplierAsn", - newName: "ContactPhone"); - - migrationBuilder.RenameColumn( - name: "Contacts_Name", - table: "Store_SupplierAsn", - newName: "ContactName"); - - migrationBuilder.RenameColumn( - name: "Contacts_Email", - table: "Store_SupplierAsn", - newName: "ContactEmail"); - - migrationBuilder.RenameColumn( - name: "Contacts_Phone", - table: "Store_SaleOrder", - newName: "ContactPhone"); - - migrationBuilder.RenameColumn( - name: "Contacts_Name", - table: "Store_SaleOrder", - newName: "ContactName"); - - migrationBuilder.RenameColumn( - name: "Contacts_Email", - table: "Store_SaleOrder", - newName: "ContactEmail"); - - migrationBuilder.RenameColumn( - name: "Contacts_Phone", - table: "Store_PurchaseOrder", - newName: "ContactPhone"); - - migrationBuilder.RenameColumn( - name: "Contacts_Name", - table: "Store_PurchaseOrder", - newName: "ContactName"); - - migrationBuilder.RenameColumn( - name: "Contacts_Email", - table: "Store_PurchaseOrder", - newName: "ContactEmail"); - - migrationBuilder.RenameColumn( - name: "InspectUser_Phone", - table: "Store_InspectNoteSummaryDetail", - newName: "InspectUser"); - - migrationBuilder.RenameColumn( - name: "InspectUser_Phone", - table: "Store_InspectNoteDetail", - newName: "InspectUser"); - - migrationBuilder.RenameColumn( - name: "Contacts_Phone", - table: "Store_CustomerAsn", - newName: "ContactPhone"); - - migrationBuilder.RenameColumn( - name: "Contacts_Name", - table: "Store_CustomerAsn", - newName: "ContactName"); - - migrationBuilder.RenameColumn( - name: "Contacts_Email", - table: "Store_CustomerAsn", - newName: "ContactEmail"); - - migrationBuilder.RenameColumn( - name: "RepeatCount_Time", - table: "Store_CountPlanDetail", - newName: "RepeatCountTime"); - - migrationBuilder.RenameColumn( - name: "RepeatCount_Operator", - table: "Store_CountPlanDetail", - newName: "RepeatCountOperator"); - - migrationBuilder.RenameColumn( - name: "FirstCount_Time", - table: "Store_CountPlanDetail", - newName: "FirstCountTime"); - - migrationBuilder.RenameColumn( - name: "FirstCount_Operator", - table: "Store_CountPlanDetail", - newName: "RepeatCountDescription"); - - migrationBuilder.RenameColumn( - name: "AuditCount_Time", - table: "Store_CountPlanDetail", - newName: "AuditCountTime"); - - migrationBuilder.RenameColumn( - name: "AuditCount_Operator", - table: "Store_CountPlanDetail", - newName: "FirstCountOperator"); - - migrationBuilder.RenameColumn( - name: "RepeatCount_Time", - table: "Store_CountNoteDetail", - newName: "RepeatCountTime"); - - migrationBuilder.RenameColumn( - name: "RepeatCount_Operator", - table: "Store_CountNoteDetail", - newName: "RepeatCountOperator"); - - migrationBuilder.RenameColumn( - name: "FirstCount_Time", - table: "Store_CountNoteDetail", - newName: "FirstCountTime"); - - migrationBuilder.RenameColumn( - name: "FirstCount_Operator", - table: "Store_CountNoteDetail", - newName: "RepeatCountDescription"); - - migrationBuilder.RenameColumn( - name: "AuditCount_Time", - table: "Store_CountNoteDetail", - newName: "AuditCountTime"); - - migrationBuilder.RenameColumn( - name: "AuditCount_Operator", - table: "Store_CountNoteDetail", - newName: "FirstCountOperator"); - - migrationBuilder.AddColumn( - name: "AuditCountDescription", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "AuditCountOperator", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "AuditCountQty", - table: "Store_CountPlanDetail", - type: "decimal(18,6)", - precision: 18, - scale: 6, - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "FirstCountDescription", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FirstCountQty", - table: "Store_CountPlanDetail", - type: "decimal(18,6)", - precision: 18, - scale: 6, - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RepeatCountQty", - table: "Store_CountPlanDetail", - type: "decimal(18,6)", - precision: 18, - scale: 6, - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "AuditCountDescription", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "AuditCountOperator", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "AuditCountQty", - table: "Store_CountNoteDetail", - type: "decimal(18,6)", - precision: 18, - scale: 6, - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "FirstCountDescription", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FirstCountQty", - table: "Store_CountNoteDetail", - type: "decimal(18,6)", - precision: 18, - scale: 6, - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RepeatCountQty", - table: "Store_CountNoteDetail", - type: "decimal(18,6)", - precision: 18, - scale: 6, - nullable: false, - defaultValue: 0m); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "AuditCountDescription", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "AuditCountOperator", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "AuditCountQty", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "FirstCountDescription", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "FirstCountQty", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "RepeatCountQty", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "AuditCountDescription", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "AuditCountOperator", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "AuditCountQty", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "FirstCountDescription", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "FirstCountQty", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "RepeatCountQty", - table: "Store_CountNoteDetail"); - - migrationBuilder.RenameColumn( - name: "ContactPhone", - table: "Store_SupplierAsn", - newName: "Contacts_Phone"); - - migrationBuilder.RenameColumn( - name: "ContactName", - table: "Store_SupplierAsn", - newName: "Contacts_Name"); - - migrationBuilder.RenameColumn( - name: "ContactEmail", - table: "Store_SupplierAsn", - newName: "Contacts_Email"); - - migrationBuilder.RenameColumn( - name: "ContactPhone", - table: "Store_SaleOrder", - newName: "Contacts_Phone"); - - migrationBuilder.RenameColumn( - name: "ContactName", - table: "Store_SaleOrder", - newName: "Contacts_Name"); - - migrationBuilder.RenameColumn( - name: "ContactEmail", - table: "Store_SaleOrder", - newName: "Contacts_Email"); - - migrationBuilder.RenameColumn( - name: "ContactPhone", - table: "Store_PurchaseOrder", - newName: "Contacts_Phone"); - - migrationBuilder.RenameColumn( - name: "ContactName", - table: "Store_PurchaseOrder", - newName: "Contacts_Name"); - - migrationBuilder.RenameColumn( - name: "ContactEmail", - table: "Store_PurchaseOrder", - newName: "Contacts_Email"); - - migrationBuilder.RenameColumn( - name: "InspectUser", - table: "Store_InspectNoteSummaryDetail", - newName: "InspectUser_Phone"); - - migrationBuilder.RenameColumn( - name: "InspectUser", - table: "Store_InspectNoteDetail", - newName: "InspectUser_Phone"); - - migrationBuilder.RenameColumn( - name: "ContactPhone", - table: "Store_CustomerAsn", - newName: "Contacts_Phone"); - - migrationBuilder.RenameColumn( - name: "ContactName", - table: "Store_CustomerAsn", - newName: "Contacts_Name"); - - migrationBuilder.RenameColumn( - name: "ContactEmail", - table: "Store_CustomerAsn", - newName: "Contacts_Email"); - - migrationBuilder.RenameColumn( - name: "RepeatCountTime", - table: "Store_CountPlanDetail", - newName: "RepeatCount_Time"); - - migrationBuilder.RenameColumn( - name: "RepeatCountOperator", - table: "Store_CountPlanDetail", - newName: "RepeatCount_Operator"); - - migrationBuilder.RenameColumn( - name: "RepeatCountDescription", - table: "Store_CountPlanDetail", - newName: "FirstCount_Operator"); - - migrationBuilder.RenameColumn( - name: "FirstCountTime", - table: "Store_CountPlanDetail", - newName: "FirstCount_Time"); - - migrationBuilder.RenameColumn( - name: "FirstCountOperator", - table: "Store_CountPlanDetail", - newName: "AuditCount_Operator"); - - migrationBuilder.RenameColumn( - name: "AuditCountTime", - table: "Store_CountPlanDetail", - newName: "AuditCount_Time"); - - migrationBuilder.RenameColumn( - name: "RepeatCountTime", - table: "Store_CountNoteDetail", - newName: "RepeatCount_Time"); - - migrationBuilder.RenameColumn( - name: "RepeatCountOperator", - table: "Store_CountNoteDetail", - newName: "RepeatCount_Operator"); - - migrationBuilder.RenameColumn( - name: "RepeatCountDescription", - table: "Store_CountNoteDetail", - newName: "FirstCount_Operator"); - - migrationBuilder.RenameColumn( - name: "FirstCountTime", - table: "Store_CountNoteDetail", - newName: "FirstCount_Time"); - - migrationBuilder.RenameColumn( - name: "FirstCountOperator", - table: "Store_CountNoteDetail", - newName: "AuditCount_Operator"); - - migrationBuilder.RenameColumn( - name: "AuditCountTime", - table: "Store_CountNoteDetail", - newName: "AuditCount_Time"); - - migrationBuilder.AddColumn( - name: "InspectUser_Email", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "InspectUser_Name", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "InspectUser_Email", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "InspectUser_Name", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "AuditCount_Description", - table: "Store_CountPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "AuditCount_Qty", - table: "Store_CountPlanDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FirstCount_Description", - table: "Store_CountPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "FirstCount_Qty", - table: "Store_CountPlanDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RepeatCount_Description", - table: "Store_CountPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "RepeatCount_Qty", - table: "Store_CountPlanDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "AuditCount_Description", - table: "Store_CountNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "AuditCount_Qty", - table: "Store_CountNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FirstCount_Description", - table: "Store_CountNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "FirstCount_Qty", - table: "Store_CountNoteDetail", - type: "decimal(18,6)", - nullable: true); - - migrationBuilder.AddColumn( - name: "RepeatCount_Description", - table: "Store_CountNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "RepeatCount_Qty", - table: "Store_CountNoteDetail", - type: "decimal(18,6)", - nullable: true); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230110065135_FlatLocation.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230110065135_FlatLocation.Designer.cs deleted file mode 100644 index 1dd2269d9..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230110065135_FlatLocation.Designer.cs +++ /dev/null @@ -1,15676 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230110065135_FlatLocation")] - partial class FlatLocation - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - 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("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - 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("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .HasColumnType("nvarchar(450)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RequestType") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromLocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateType") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductL7PartsNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductL7PartsNoteDetailId"); - - b1.ToTable("Store_ProductL7PartsNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductL7PartsNoteDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ProductItem", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("ProductItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230110065135_FlatLocation.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230110065135_FlatLocation.cs deleted file mode 100644 index 377be7229..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230110065135_FlatLocation.cs +++ /dev/null @@ -1,4095 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class FlatLocation : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Store_ProductReceiptRequestDetail_Number_ItemCode_LocationCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductionReturnRequestDetail_Number_ItemCode_LocationCode", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_WorkOrder"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_WarehouseTransferNote"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptRequest"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptNote"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueRequest"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueNote"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_TransferRequest"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_TransferNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_SupplierAsn"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ScrapRequest"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ScrapNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_SaleOrder"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_RecycledMaterialReceiptNote"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ReceiptAbnormalNote"); - - migrationBuilder.DropColumn( - name: "ContainerCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "Lot", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "Status", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "Worker", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PutawayRequest"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "Worker", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PutawayNote"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnRequest"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnNote"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendErpCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseOrder"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "RawLocation_Area", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleRequest"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleNote"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptRequest"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductL7PartsNote"); - - migrationBuilder.DropColumn( - name: "ContainerCode", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "PoNumber", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "PoNumber", - table: "Store_ProductionReturnRequest"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductionReturnRequest"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "PoNumber", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "PoNumber", - table: "Store_ProductionReturnNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductionReturnNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductionPlan"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PreparationPlan"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_OfflineSettlementNote"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_NoOkConvertOkNote"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_MaterialRequest"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_JisDeliverNote"); - - migrationBuilder.DropColumn( - name: "LocationCode", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ItemTransformRequest"); - - migrationBuilder.DropColumn( - name: "LocationCode", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ItemTransformNote"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_IssueNote"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_IsolationNote"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InventoryTransferNote"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InventoryInitialNote"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InspectRequest"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InspectNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InspectAbnormalNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_DeliverRequest"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_DeliverPlan"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationCode", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_DeliverNote"); - - migrationBuilder.DropColumn( - name: "FromLocation_Area", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_ErpCode", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocation_Group", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Area", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_ErpCode", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocation_Group", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CustomerReturnNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CustomerAsn"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountPlan"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountNote"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountAdjustRequest"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountAdjustNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ContainerBindNote"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "Location_Area", - table: "Store_BackFlushNote"); - - migrationBuilder.DropColumn( - name: "Location_ErpCode", - table: "Store_BackFlushNote"); - - migrationBuilder.DropColumn( - name: "Location_Group", - table: "Store_BackFlushNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptRequest"); - - migrationBuilder.RenameColumn( - name: "RawLocation", - table: "Store_WorkOrderDetail", - newName: "RawLocationCode"); - - migrationBuilder.RenameColumn( - name: "ToLocation_Group", - table: "Store_PutawayRequestDetail", - newName: "PoNumber"); - - migrationBuilder.RenameColumn( - name: "ToLocation_ErpCode", - table: "Store_PutawayRequestDetail", - newName: "PoLine"); - - migrationBuilder.RenameColumn( - name: "PackingCode", - table: "Store_PutawayRequestDetail", - newName: "ToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "LocationCode", - table: "Store_PutawayRequestDetail", - newName: "FromLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RawLocation_Group", - table: "Store_ProductRecycleRequestDetail", - newName: "RawWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RawLocation_ErpCode", - table: "Store_ProductRecycleRequestDetail", - newName: "RawLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RawLocation", - table: "Store_ProductReceiptNoteDetail", - newName: "RawLocationCode"); - - migrationBuilder.RenameColumn( - name: "RawLocation", - table: "Store_ProductL7PartsNoteDetail", - newName: "RawLocationCode"); - - migrationBuilder.RenameColumn( - name: "ToLocation_Group", - table: "Store_ProductionReturnRequestDetail", - newName: "ToPackingCode"); - - migrationBuilder.RenameColumn( - name: "ToLocation_ErpCode", - table: "Store_ProductionReturnRequestDetail", - newName: "ToLot"); - - migrationBuilder.RenameColumn( - name: "ToLocation_Area", - table: "Store_ProductionReturnRequestDetail", - newName: "ToContainerCode"); - - migrationBuilder.RenameColumn( - name: "Status", - table: "Store_ProductionReturnRequestDetail", - newName: "ToStatus"); - - migrationBuilder.RenameColumn( - name: "PackingCode", - table: "Store_ProductionReturnRequestDetail", - newName: "ToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "Lot", - table: "Store_ProductionReturnRequestDetail", - newName: "FromPackingCode"); - - migrationBuilder.RenameColumn( - name: "Location_Group", - table: "Store_ProductionReturnRequestDetail", - newName: "FromLot"); - - migrationBuilder.RenameColumn( - name: "Location_ErpCode", - table: "Store_ProductionReturnRequestDetail", - newName: "FromContainerCode"); - - migrationBuilder.RenameColumn( - name: "LocationCode", - table: "Store_ProductionReturnRequestDetail", - newName: "ToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RawLocation", - table: "Store_JisProductReceiptNoteDetail", - newName: "WarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RawLocation", - table: "Store_JisProductReceiptNote", - newName: "RawLocationCode"); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "LocationCode", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocationCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "FromLocationCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromStatus", - table: "Store_ProductionReturnRequestDetail", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "FromWarehouseCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWarehouseCode", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "RawLocationCode", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocationCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "FromLocationCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWarehouseCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWarehouseCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "ToLocationCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "FromLocationCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWarehouseCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWarehouseCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationErpCode", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationErpCode", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AlterColumn( - name: "WarehouseCode", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "LocationErpCode", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptRequestDetail_Number_ItemCode_LocationCode", - table: "Store_ProductReceiptRequestDetail", - columns: new[] { "Number", "ItemCode", "LocationCode" }, - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnRequestDetail_Number_ItemCode_FromLocationCode", - table: "Store_ProductionReturnRequestDetail", - columns: new[] { "Number", "ItemCode", "FromLocationCode" }, - unique: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Store_ProductReceiptRequestDetail_Number_ItemCode_LocationCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropIndex( - name: "IX_Store_ProductionReturnRequestDetail_Number_ItemCode_FromLocationCode", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationCode", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromStatus", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWarehouseCode", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWarehouseCode", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RawLocationCode", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationCode", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWarehouseCode", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWarehouseCode", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationCode", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWarehouseCode", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWarehouseCode", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationErpCode", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationErpCode", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationErpCode", - table: "Store_BackFlushNote"); - - migrationBuilder.RenameColumn( - name: "RawLocationCode", - table: "Store_WorkOrderDetail", - newName: "RawLocation"); - - migrationBuilder.RenameColumn( - name: "ToLocationErpCode", - table: "Store_PutawayRequestDetail", - newName: "PackingCode"); - - migrationBuilder.RenameColumn( - name: "PoNumber", - table: "Store_PutawayRequestDetail", - newName: "ToLocation_Group"); - - migrationBuilder.RenameColumn( - name: "PoLine", - table: "Store_PutawayRequestDetail", - newName: "ToLocation_ErpCode"); - - migrationBuilder.RenameColumn( - name: "FromLocationErpCode", - table: "Store_PutawayRequestDetail", - newName: "LocationCode"); - - migrationBuilder.RenameColumn( - name: "RawWarehouseCode", - table: "Store_ProductRecycleRequestDetail", - newName: "RawLocation_Group"); - - migrationBuilder.RenameColumn( - name: "RawLocationErpCode", - table: "Store_ProductRecycleRequestDetail", - newName: "RawLocation_ErpCode"); - - migrationBuilder.RenameColumn( - name: "RawLocationCode", - table: "Store_ProductReceiptNoteDetail", - newName: "RawLocation"); - - migrationBuilder.RenameColumn( - name: "RawLocationCode", - table: "Store_ProductL7PartsNoteDetail", - newName: "RawLocation"); - - migrationBuilder.RenameColumn( - name: "ToWarehouseCode", - table: "Store_ProductionReturnRequestDetail", - newName: "PackingCode"); - - migrationBuilder.RenameColumn( - name: "ToStatus", - table: "Store_ProductionReturnRequestDetail", - newName: "Status"); - - migrationBuilder.RenameColumn( - name: "ToPackingCode", - table: "Store_ProductionReturnRequestDetail", - newName: "ToLocation_Group"); - - migrationBuilder.RenameColumn( - name: "ToLot", - table: "Store_ProductionReturnRequestDetail", - newName: "ToLocation_ErpCode"); - - migrationBuilder.RenameColumn( - name: "ToLocationErpCode", - table: "Store_ProductionReturnRequestDetail", - newName: "LocationCode"); - - migrationBuilder.RenameColumn( - name: "ToContainerCode", - table: "Store_ProductionReturnRequestDetail", - newName: "ToLocation_Area"); - - migrationBuilder.RenameColumn( - name: "FromPackingCode", - table: "Store_ProductionReturnRequestDetail", - newName: "Lot"); - - migrationBuilder.RenameColumn( - name: "FromLot", - table: "Store_ProductionReturnRequestDetail", - newName: "Location_Group"); - - migrationBuilder.RenameColumn( - name: "FromContainerCode", - table: "Store_ProductionReturnRequestDetail", - newName: "Location_ErpCode"); - - migrationBuilder.RenameColumn( - name: "WarehouseCode", - table: "Store_JisProductReceiptNoteDetail", - newName: "RawLocation"); - - migrationBuilder.RenameColumn( - name: "RawLocationCode", - table: "Store_JisProductReceiptNote", - newName: "RawLocation"); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_WorkOrder", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_WarehouseTransferNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedReceiptNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_UnplannedIssueNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_TransferRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_TransferNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_SupplierAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ScrapRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ScrapNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_SaleOrder", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_RecycledMaterialReceiptNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ReceiptAbnormalNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ContainerCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Lot", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Status", - table: "Store_PutawayRequestDetail", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Worker", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PutawayRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Worker", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PutawayNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReturnNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendErpCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseOrder", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RawLocation_Area", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductRecycleNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationCode", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductReceiptRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductL7PartsNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "ContainerCode", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "PoNumber", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PoNumber", - table: "Store_ProductionReturnRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductionReturnRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "PoNumber", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "PoNumber", - table: "Store_ProductionReturnNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductionReturnNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ProductionPlan", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PreparationPlan", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_OfflineSettlementNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_NoOkConvertOkNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_MaterialRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_JisDeliverNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "LocationCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ItemTransformRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "LocationCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ItemTransformNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_IssueNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_IsolationNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InventoryTransferNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InventoryInitialNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InspectRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InspectNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InspectAbnormalNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_DeliverRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_DeliverPlan", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocationCode", - table: "Store_DeliverNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_DeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_DeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_DeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_DeliverNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Area", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_ErpCode", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "FromLocation_Group", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Area", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_ErpCode", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToLocation_Group", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CustomerReturnNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CustomerAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountPlan", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountAdjustRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_CountAdjustNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_ContainerBindNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "WarehouseCode", - table: "Store_BackFlushNote", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Location_Area", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_ErpCode", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "Location_Group", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductReceiptRequestDetail_Number_ItemCode_LocationCode", - table: "Store_ProductReceiptRequestDetail", - columns: new[] { "Number", "ItemCode", "LocationCode" }, - unique: true, - filter: "[LocationCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_ProductionReturnRequestDetail_Number_ItemCode_LocationCode", - table: "Store_ProductionReturnRequestDetail", - columns: new[] { "Number", "ItemCode", "LocationCode" }, - unique: true); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111060139_ResumeLocationAreaAndLocationGroup.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111060139_ResumeLocationAreaAndLocationGroup.Designer.cs deleted file mode 100644 index 06f036230..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111060139_ResumeLocationAreaAndLocationGroup.Designer.cs +++ /dev/null @@ -1,16773 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230111060139_ResumeLocationAreaAndLocationGroup")] - partial class ResumeLocationAreaAndLocationGroup - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .HasColumnType("nvarchar(450)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RequestType") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromLocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateType") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("WorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WorkGroup"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("FromWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWorkGroup"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("ToWorkGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWorkGroup"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductL7PartsNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductL7PartsNoteDetailId"); - - b1.ToTable("Store_ProductL7PartsNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductL7PartsNoteDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ProductItem", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("ProductItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111060139_ResumeLocationAreaAndLocationGroup.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111060139_ResumeLocationAreaAndLocationGroup.cs deleted file mode 100644 index 1c1f5780a..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111060139_ResumeLocationAreaAndLocationGroup.cs +++ /dev/null @@ -1,2196 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class ResumeLocationAreaAndLocationGroup : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "RawLocationArea", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RawLocationGroup", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationArea", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromLocationGroup", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationArea", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToLocationGroup", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationArea", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "LocationGroup", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "RawLocationArea", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "RawLocationGroup", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationArea", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromLocationGroup", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationArea", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToLocationGroup", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "LocationArea", - table: "Store_BackFlushNote"); - - migrationBuilder.DropColumn( - name: "LocationGroup", - table: "Store_BackFlushNote"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_BackFlushNote"); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111071618_RemoveWorkGroup.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111071618_RemoveWorkGroup.Designer.cs deleted file mode 100644 index 4c4cf945d..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111071618_RemoveWorkGroup.Designer.cs +++ /dev/null @@ -1,16410 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230111071618_RemoveWorkGroup")] - partial class RemoveWorkGroup - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .HasColumnType("nvarchar(450)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RequestType") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromLocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .HasColumnType("nvarchar(max)"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateType") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Reason") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteId"); - - b1.ToTable("Store_BackFlushNote"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("BackFlushNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("BackFlushNoteDetailId"); - - b1.ToTable("Store_BackFlushNoteDetail"); - - b1.WithOwner() - .HasForeignKey("BackFlushNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ContainerBindNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ContainerBindNoteDetailId"); - - b1.ToTable("Store_ContainerBindNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ContainerBindNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustNoteDetailId"); - - b1.ToTable("Store_CountAdjustNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountAdjustRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountAdjustRequestDetailId"); - - b1.ToTable("Store_CountAdjustRequestDetail"); - - b1.WithOwner() - .HasForeignKey("CountAdjustRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountNoteDetailId"); - - b1.ToTable("Store_CountNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CountNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CountPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CountPlanDetailId"); - - b1.ToTable("Store_CountPlanDetail"); - - b1.WithOwner() - .HasForeignKey("CountPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerAsnDetailId"); - - b1.ToTable("Store_CustomerAsnDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerAsnDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("CustomerReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("CustomerReturnNoteDetailId"); - - b1.ToTable("Store_CustomerReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("CustomerReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverNoteDetailId"); - - b1.ToTable("Store_DeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverPlanDetailId"); - - b1.ToTable("Store_DeliverPlanDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("DeliverRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("DeliverRequestDetailId"); - - b1.ToTable("Store_DeliverRequestDetail"); - - b1.WithOwner() - .HasForeignKey("DeliverRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectAbnormalNoteDetailId"); - - b1.ToTable("Store_InspectAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteDetailId"); - - b1.ToTable("Store_InspectNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectNoteSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectNoteSummaryDetailId"); - - b1.ToTable("Store_InspectNoteSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectNoteSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestDetailId"); - - b1.ToTable("Store_InspectRequestDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InspectRequestSummaryDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InspectRequestSummaryDetailId"); - - b1.ToTable("Store_InspectRequestSummaryDetail"); - - b1.WithOwner() - .HasForeignKey("InspectRequestSummaryDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryInitialNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryInitialNoteDetailId"); - - b1.ToTable("Store_InventoryInitialNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryInitialNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("InventoryTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("InventoryTransferNoteDetailId"); - - b1.ToTable("Store_InventoryTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("InventoryTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IsolationNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IsolationNoteDetailId"); - - b1.ToTable("Store_IsolationNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IsolationNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("IssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("IssueNoteDetailId"); - - b1.ToTable("Store_IssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("IssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformNoteDetailId"); - - b1.ToTable("Store_ItemTransformNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformNoteDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "FromBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "ToBatch", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ToItem", b1 => - { - b1.Property("ItemTransformRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ItemTransformRequestDetailId"); - - b1.ToTable("Store_ItemTransformRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ItemTransformRequestDetailId"); - }); - - b.Navigation("FromBatch"); - - b.Navigation("Item"); - - b.Navigation("ToBatch"); - - b.Navigation("ToItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisDeliverNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisDeliverNoteDetailId"); - - b1.ToTable("Store_JisDeliverNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisDeliverNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("JisProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("JisProductReceiptNoteDetailId"); - - b1.ToTable("Store_JisProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("JisProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("MaterialRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("MaterialRequestDetailId"); - - b1.ToTable("Store_MaterialRequestDetail"); - - b1.WithOwner() - .HasForeignKey("MaterialRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("NoOkConvertOkNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("NoOkConvertOkNoteDetailId"); - - b1.ToTable("Store_NoOkConvertOkNoteDetail"); - - b1.WithOwner() - .HasForeignKey("NoOkConvertOkNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("OfflineSettlementNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("OfflineSettlementNoteDetailId"); - - b1.ToTable("Store_OfflineSettlementNoteDetail"); - - b1.WithOwner() - .HasForeignKey("OfflineSettlementNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PreparationPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PreparationPlanDetailId"); - - b1.ToTable("Store_PreparationPlanDetail"); - - b1.WithOwner() - .HasForeignKey("PreparationPlanDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionPlanDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionPlanDetailId"); - - b1.ToTable("Store_ProductionPlanDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionPlanDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnNoteDetailId"); - - b1.ToTable("Store_ProductionReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductionReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductionReturnRequestDetailId"); - - b1.ToTable("Store_ProductionReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductionReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductL7PartsNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductL7PartsNoteDetailId"); - - b1.ToTable("Store_ProductL7PartsNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductL7PartsNoteDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptNoteDetailId"); - - b1.ToTable("Store_ProductReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductReceiptRequestDetailId"); - - b1.ToTable("Store_ProductReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "ProductItem", b1 => - { - b1.Property("ProductRecycleMaterialDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleMaterialDetailId"); - - b1.ToTable("Store_ProductRecycleMaterialDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleMaterialDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - - b.Navigation("ProductItem"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleNoteDetailId"); - - b1.ToTable("Store_ProductRecycleNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ProductRecycleRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ProductRecycleRequestDetailId"); - - b1.ToTable("Store_ProductRecycleRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ProductRecycleRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseOrderDetailId"); - - b1.ToTable("Store_PurchaseOrderDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptNoteDetailId"); - - b1.ToTable("Store_PurchaseReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReceiptRequestDetailId"); - - b1.ToTable("Store_PurchaseReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnNoteDetailId"); - - b1.ToTable("Store_PurchaseReturnNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PurchaseReturnRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PurchaseReturnRequestDetailId"); - - b1.ToTable("Store_PurchaseReturnRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PurchaseReturnRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayNoteDetailId"); - - b1.ToTable("Store_PutawayNoteDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("PutawayRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("PutawayRequestDetailId"); - - b1.ToTable("Store_PutawayRequestDetail"); - - b1.WithOwner() - .HasForeignKey("PutawayRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ReceiptAbnormalNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ReceiptAbnormalNoteDetailId"); - - b1.ToTable("Store_ReceiptAbnormalNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ReceiptAbnormalNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("RecycledMaterialReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("RecycledMaterialReceiptNoteDetailId"); - - b1.ToTable("Store_RecycledMaterialReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("RecycledMaterialReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SaleOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SaleOrderDetailId"); - - b1.ToTable("Store_SaleOrderDetail"); - - b1.WithOwner() - .HasForeignKey("SaleOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapNoteDetailId"); - - b1.ToTable("Store_ScrapNoteDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("ScrapRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("ScrapRequestDetailId"); - - b1.ToTable("Store_ScrapRequestDetail"); - - b1.WithOwner() - .HasForeignKey("ScrapRequestDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("SupplierAsnDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("SupplierAsnDetailId"); - - b1.ToTable("Store_SupplierAsnDetail"); - - b1.WithOwner() - .HasForeignKey("SupplierAsnDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferNoteDetailId"); - - b1.ToTable("Store_TransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("TransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("TransferRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("TransferRequestDetailId"); - - b1.ToTable("Store_TransferRequestDetail"); - - b1.WithOwner() - .HasForeignKey("TransferRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueNoteDetailId"); - - b1.ToTable("Store_UnplannedIssueNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedIssueRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedIssueRequestDetailId"); - - b1.ToTable("Store_UnplannedIssueRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedIssueRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptNoteDetailId"); - - b1.ToTable("Store_UnplannedReceiptNoteDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("UnplannedReceiptRequestDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("UnplannedReceiptRequestDetailId"); - - b1.ToTable("Store_UnplannedReceiptRequestDetail"); - - b1.WithOwner() - .HasForeignKey("UnplannedReceiptRequestDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Batch", "Batch", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("ArriveDate") - .HasColumnType("datetime2"); - - b1.Property("ExpireDate") - .HasColumnType("datetime2"); - - b1.Property("ProduceDate") - .HasColumnType("datetime2"); - - b1.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WarehouseTransferNoteDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WarehouseTransferNoteDetailId"); - - b1.ToTable("Store_WarehouseTransferNoteDetail"); - - b1.WithOwner() - .HasForeignKey("WarehouseTransferNoteDetailId"); - }); - - b.Navigation("Batch"); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderId"); - - b1.ToTable("Store_WorkOrder"); - - b1.WithOwner() - .HasForeignKey("WorkOrderId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.OwnsOne("Win_in.Sfs.Shared.Domain.Item", "Item", b1 => - { - b1.Property("WorkOrderDetailId") - .HasColumnType("uniqueidentifier"); - - b1.Property("Desc1") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Desc2") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b1.Property("Name") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b1.HasKey("WorkOrderDetailId"); - - b1.ToTable("Store_WorkOrderDetail"); - - b1.WithOwner() - .HasForeignKey("WorkOrderDetailId"); - }); - - b.Navigation("Item"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111071618_RemoveWorkGroup.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111071618_RemoveWorkGroup.cs deleted file mode 100644 index d3ba352fd..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230111071618_RemoveWorkGroup.cs +++ /dev/null @@ -1,734 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class RemoveWorkGroup : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromWorkGroup", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToWorkGroup", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "WorkGroup", - table: "Store_BackFlushNote"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "FromWorkGroup", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "ToWorkGroup", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - - migrationBuilder.AddColumn( - name: "WorkGroup", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: ""); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230112071932_FlatItemAndBatch.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230112071932_FlatItemAndBatch.Designer.cs deleted file mode 100644 index 83f7fc8fa..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230112071932_FlatItemAndBatch.Designer.cs +++ /dev/null @@ -1,14974 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230112071932_FlatItemAndBatch")] - partial class FlatItemAndBatch - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RequestType") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromLocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateType") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230112071932_FlatItemAndBatch.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230112071932_FlatItemAndBatch.cs deleted file mode 100644 index da3dc7637..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230112071932_FlatItemAndBatch.cs +++ /dev/null @@ -1,11937 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class FlatItemAndBatch : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Store_BackFlushNoteDetail_Number_ItemCode_Lot", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_WorkOrderDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_WorkOrderDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_WorkOrder"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_WorkOrder"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "Batch_ArriveDate", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "ProductItem_Desc1", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "ProductItem_Desc2", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ProductL7PartsNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ProductL7PartsNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ProductionPlanDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ProductionPlanDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_PreparationPlanDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_PreparationPlanDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromBatch_ArriveDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromBatch_ExpireDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromBatch_ProduceDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToBatch_ArriveDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToBatch_ExpireDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToBatch_ProduceDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToItem_Desc1", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToItem_Desc2", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromBatch_ArriveDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromBatch_ExpireDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromBatch_ProduceDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToBatch_ArriveDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToBatch_ExpireDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToBatch_ProduceDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToItem_Desc1", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToItem_Desc2", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_InspectAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_InspectAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_DeliverPlanDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_DeliverPlanDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_CustomerAsnDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_CustomerAsnDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_ContainerBindNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_ContainerBindNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "Item_Desc1", - table: "Store_BackFlushNote"); - - migrationBuilder.DropColumn( - name: "Item_Desc2", - table: "Store_BackFlushNote"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_WorkOrderDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_WorkOrder", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_WarehouseTransferNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_WarehouseTransferNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_WarehouseTransferNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_WarehouseTransferNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_WarehouseTransferNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedReceiptRequestDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_UnplannedReceiptRequestDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_UnplannedReceiptRequestDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_UnplannedReceiptRequestDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_UnplannedReceiptRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedReceiptNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_UnplannedReceiptNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_UnplannedReceiptNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_UnplannedReceiptNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_UnplannedReceiptNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedIssueRequestDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_UnplannedIssueRequestDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_UnplannedIssueRequestDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_UnplannedIssueRequestDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_UnplannedIssueRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_UnplannedIssueNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_UnplannedIssueNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_UnplannedIssueNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_UnplannedIssueNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_UnplannedIssueNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_TransferRequestDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_TransferRequestDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_TransferRequestDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_TransferRequestDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_TransferRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_TransferNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_TransferNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_TransferNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_TransferNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_TransferNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_SupplierAsnDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_SupplierAsnDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_SupplierAsnDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_SupplierAsnDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_SupplierAsnDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ScrapRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_ScrapNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_ScrapNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_ScrapNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_ScrapNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ScrapNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_SaleOrderDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_PutawayRequestDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_PutawayRequestDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_PutawayRequestDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_PutawayRequestDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_PutawayRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_PutawayNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_PutawayNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_PutawayNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_PutawayNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_PutawayNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReturnRequestDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_PurchaseReturnRequestDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_PurchaseReturnRequestDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_PurchaseReturnRequestDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_PurchaseReturnRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReturnNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_PurchaseReturnNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_PurchaseReturnNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_PurchaseReturnNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_PurchaseReturnNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReceiptRequestDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_PurchaseReceiptRequestDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_PurchaseReceiptRequestDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_PurchaseReceiptRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_PurchaseReceiptNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_PurchaseReceiptNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_PurchaseReceiptNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_PurchaseReceiptNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_PurchaseReceiptNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_PurchaseOrderDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ProductRecycleRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductRecycleNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_ProductRecycleNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_ProductRecycleNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_ProductRecycleNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ProductRecycleNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductRecycleMaterialDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_ProductRecycleMaterialDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_ProductRecycleMaterialDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_ProductRecycleMaterialDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ProductItem_Name", - table: "Store_ProductRecycleMaterialDetail", - newName: "ProductItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ProductRecycleMaterialDetail", - newName: "ProductItemDesc2"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductReceiptRequestDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_ProductReceiptRequestDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_ProductReceiptRequestDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_ProductReceiptRequestDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ProductReceiptRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductReceiptNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_ProductReceiptNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_ProductReceiptNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_ProductReceiptNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ProductReceiptNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ProductL7PartsNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductionReturnRequestDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_ProductionReturnRequestDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_ProductionReturnRequestDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_ProductionReturnRequestDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ProductionReturnRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductionReturnNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_ProductionReturnNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_ProductionReturnNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_ProductionReturnNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ProductionReturnNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_ProductionPlanDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_ProductionPlanDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_ProductionPlanDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_ProductionPlanDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ProductionPlanDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_PreparationPlanDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_OfflineSettlementNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_OfflineSettlementNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_OfflineSettlementNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_OfflineSettlementNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_OfflineSettlementNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_NoOkConvertOkNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_NoOkConvertOkNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_NoOkConvertOkNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_NoOkConvertOkNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_NoOkConvertOkNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_MaterialRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_JisProductReceiptNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_JisProductReceiptNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_JisProductReceiptNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_JisProductReceiptNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_JisProductReceiptNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_JisDeliverNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_JisDeliverNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_JisDeliverNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_JisDeliverNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_JisDeliverNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "ToItem_Name", - table: "Store_ItemTransformRequestDetail", - newName: "ToSupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ToBatch_SupplierBatch", - table: "Store_ItemTransformRequestDetail", - newName: "ToItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ItemTransformRequestDetail", - newName: "ToItemDesc2"); - - migrationBuilder.RenameColumn( - name: "FromBatch_SupplierBatch", - table: "Store_ItemTransformRequestDetail", - newName: "ToItemDesc1"); - - migrationBuilder.RenameColumn( - name: "ToItem_Name", - table: "Store_ItemTransformNoteDetail", - newName: "ToSupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ToBatch_SupplierBatch", - table: "Store_ItemTransformNoteDetail", - newName: "ToItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ItemTransformNoteDetail", - newName: "ToItemDesc2"); - - migrationBuilder.RenameColumn( - name: "FromBatch_SupplierBatch", - table: "Store_ItemTransformNoteDetail", - newName: "ToItemDesc1"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_IssueNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_IssueNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_IssueNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_IssueNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_IssueNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_IsolationNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_IsolationNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_IsolationNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_IsolationNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_IsolationNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_InventoryTransferNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_InventoryTransferNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_InventoryTransferNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_InventoryTransferNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_InventoryTransferNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_InventoryInitialNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_InventoryInitialNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_InventoryInitialNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_InventoryInitialNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_InventoryInitialNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectRequestSummaryDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_InspectRequestSummaryDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_InspectRequestSummaryDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_InspectRequestSummaryDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_InspectRequestSummaryDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectRequestDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_InspectRequestDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_InspectRequestDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_InspectRequestDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_InspectRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectNoteSummaryDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_InspectNoteSummaryDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_InspectNoteSummaryDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_InspectNoteSummaryDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_InspectNoteSummaryDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_InspectNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_InspectNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_InspectNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_InspectNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_InspectAbnormalNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_InspectAbnormalNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_InspectAbnormalNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_InspectAbnormalNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_InspectAbnormalNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_DeliverRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_DeliverPlanDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_DeliverNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_DeliverNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_DeliverNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_DeliverNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_DeliverNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_CustomerReturnNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_CustomerReturnNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_CustomerReturnNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_CustomerReturnNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_CustomerReturnNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_CustomerAsnDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_CountPlanDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_CountPlanDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_CountPlanDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_CountPlanDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_CountPlanDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_CountNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_CountNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_CountNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_CountNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_CountNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_CountAdjustRequestDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_CountAdjustRequestDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_CountAdjustRequestDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_CountAdjustRequestDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_CountAdjustRequestDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_CountAdjustNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_CountAdjustNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_CountAdjustNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_CountAdjustNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_CountAdjustNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_ContainerBindNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_ContainerBindNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_ContainerBindNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_ContainerBindNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_ContainerBindNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_BackFlushNoteDetail", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_BackFlushNoteDetail", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_BackFlushNoteDetail", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_BackFlushNoteDetail", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_BackFlushNoteDetail", - newName: "ItemName"); - - migrationBuilder.RenameColumn( - name: "Batch_SupplierBatch", - table: "Store_BackFlushNote", - newName: "SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "Batch_ProduceDate", - table: "Store_BackFlushNote", - newName: "ProduceDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ExpireDate", - table: "Store_BackFlushNote", - newName: "ExpireDate"); - - migrationBuilder.RenameColumn( - name: "Batch_ArriveDate", - table: "Store_BackFlushNote", - newName: "ArriveDate"); - - migrationBuilder.RenameColumn( - name: "Item_Name", - table: "Store_BackFlushNote", - newName: "ItemName"); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_WorkOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_WorkOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ItemCode", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Reason", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_WarehouseTransferNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_WarehouseTransferNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_WarehouseTransferNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_UnplannedReceiptRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_UnplannedReceiptRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_UnplannedReceiptRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_UnplannedIssueRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_UnplannedIssueRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_UnplannedIssueRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_TransferRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_TransferRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_TransferRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Reason", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_TransferNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_TransferNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_TransferNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_SupplierAsnDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_SupplierAsnDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_SupplierAsnDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "TimeWindow", - table: "Store_SupplierAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_ScrapNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_ScrapNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_ScrapNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_ReceiptAbnormalNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_ReceiptAbnormalNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_ReceiptAbnormalNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_PurchaseReturnRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_PurchaseReturnRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_PurchaseReturnRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Reason", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_PurchaseReceiptRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_PurchaseReceiptRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "TimeWindow", - table: "Store_PurchaseReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_ProductRecycleNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_ProductRecycleNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_ProductRecycleNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_ProductRecycleMaterialDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_ProductRecycleMaterialDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_ProductRecycleMaterialDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemName", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ProductItemDesc1", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_ProductReceiptRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_ProductReceiptRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_ProductReceiptRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "ItemCode", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_ProductionReturnRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_ProductionReturnRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_ProductionReturnRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_ProductionPlanDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_ProductionPlanDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_ProductionPlanDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ProductionPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ProductionPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PreparationPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_PreparationPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_PreparationPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_OfflineSettlementNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_OfflineSettlementNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_OfflineSettlementNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_NoOkConvertOkNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_NoOkConvertOkNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_NoOkConvertOkNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_JisProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_JisProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_JisProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_JisDeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_JisDeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_JisDeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToItemCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "FromArriveDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "FromExpireDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "FromProduceDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "FromSupplierBatch", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemName", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToArriveDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "ToExpireDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "ToProduceDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToItemCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "FromArriveDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "FromExpireDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "FromProduceDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "FromSupplierBatch", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemName", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToArriveDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "ToExpireDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "ToProduceDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_IsolationNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_IsolationNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_IsolationNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Reason", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_InventoryTransferNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_InventoryTransferNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_InventoryTransferNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_InventoryInitialNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_InventoryInitialNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_InventoryInitialNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_InspectRequestSummaryDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_InspectRequestSummaryDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_InspectRequestSummaryDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_InspectRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_InspectRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_InspectRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_InspectNoteSummaryDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_InspectNoteSummaryDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_InspectNoteSummaryDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_InspectNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_InspectNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_InspectNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_InspectAbnormalNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_InspectAbnormalNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_InspectAbnormalNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_DeliverRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_DeliverRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_DeliverRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_DeliverPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_DeliverPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_DeliverPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_CustomerReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_CustomerReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_CustomerReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_CustomerAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_CustomerAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_CustomerAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_CountPlanDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_CountPlanDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_CountPlanDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_CountNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_CountNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_CountNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_CountAdjustRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_CountAdjustRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_CountAdjustRequestDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_CountAdjustNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_CountAdjustNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_CountAdjustNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_ContainerBindNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_ContainerBindNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_ContainerBindNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "PackingCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Lot", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ItemCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ContainerCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_BackFlushNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_BackFlushNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_BackFlushNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProduceDate", - table: "Store_BackFlushNote", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ExpireDate", - table: "Store_BackFlushNote", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ArriveDate", - table: "Store_BackFlushNote", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), - oldClrType: typeof(DateTime), - oldType: "datetime2", - oldNullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc1", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "ItemDesc2", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_BackFlushNoteDetail_Number_ItemCode_Lot", - table: "Store_BackFlushNoteDetail", - columns: new[] { "Number", "ItemCode", "Lot" }, - unique: true, - filter: "[Lot] IS NOT NULL"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropIndex( - name: "IX_Store_BackFlushNoteDetail_Number_ItemCode_Lot", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_WorkOrderDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_WorkOrderDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_WorkOrder"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_WorkOrder"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_WarehouseTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_TransferRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_TransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_SupplierAsnDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ScrapRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ScrapNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_SaleOrderDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_RecycledMaterialReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ReceiptAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_PutawayRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_PurchaseReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_PurchaseReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ProductRecycleRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ProductRecycleNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "ItemName", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "ProductItemDesc1", - table: "Store_ProductRecycleMaterialDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ProductReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ProductL7PartsNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ProductL7PartsNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ProductionReturnRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ProductionPlanDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ProductionPlanDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_PreparationPlanDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_PreparationPlanDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_OfflineSettlementNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_NoOkConvertOkNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_MaterialRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_JisProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_JisDeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromArriveDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromExpireDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromProduceDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromSupplierBatch", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemName", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToArriveDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToExpireDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "ToProduceDate", - table: "Store_ItemTransformRequestDetail"); - - migrationBuilder.DropColumn( - name: "FromArriveDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromExpireDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromProduceDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "FromSupplierBatch", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemName", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToArriveDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToExpireDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ToProduceDate", - table: "Store_ItemTransformNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_IsolationNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_InventoryTransferNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_InventoryInitialNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_InspectRequestSummaryDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_InspectRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_InspectNoteSummaryDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_InspectAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_InspectAbnormalNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_DeliverRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_DeliverPlanDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_DeliverPlanDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_CustomerReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_CustomerAsnDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_CustomerAsnDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_CountPlanDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_CountNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_CountAdjustRequestDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_CountAdjustNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_ContainerBindNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_ContainerBindNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_BackFlushNoteDetail"); - - migrationBuilder.DropColumn( - name: "ItemDesc1", - table: "Store_BackFlushNote"); - - migrationBuilder.DropColumn( - name: "ItemDesc2", - table: "Store_BackFlushNote"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_WorkOrderDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_WorkOrder", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_WarehouseTransferNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_WarehouseTransferNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_WarehouseTransferNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_WarehouseTransferNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_WarehouseTransferNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_UnplannedReceiptRequestDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_UnplannedReceiptRequestDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_UnplannedReceiptRequestDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_UnplannedReceiptRequestDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_UnplannedReceiptRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_UnplannedReceiptNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_UnplannedReceiptNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_UnplannedReceiptNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_UnplannedReceiptNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_UnplannedReceiptNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_UnplannedIssueRequestDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_UnplannedIssueRequestDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_UnplannedIssueRequestDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_UnplannedIssueRequestDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_UnplannedIssueRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_UnplannedIssueNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_UnplannedIssueNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_UnplannedIssueNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_UnplannedIssueNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_UnplannedIssueNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_TransferRequestDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_TransferRequestDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_TransferRequestDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_TransferRequestDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_TransferRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_TransferNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_TransferNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_TransferNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_TransferNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_TransferNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_SupplierAsnDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_SupplierAsnDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_SupplierAsnDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_SupplierAsnDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_SupplierAsnDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ScrapRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_ScrapNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_ScrapNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_ScrapNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_ScrapNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ScrapNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_SaleOrderDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_RecycledMaterialReceiptNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ReceiptAbnormalNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_PutawayRequestDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_PutawayRequestDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_PutawayRequestDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_PutawayRequestDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_PutawayRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_PutawayNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_PutawayNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_PutawayNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_PutawayNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_PutawayNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_PurchaseReturnRequestDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_PurchaseReturnRequestDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_PurchaseReturnRequestDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_PurchaseReturnRequestDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_PurchaseReturnRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_PurchaseReturnNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_PurchaseReturnNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_PurchaseReturnNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_PurchaseReturnNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_PurchaseReturnNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_PurchaseReceiptRequestDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_PurchaseReceiptRequestDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_PurchaseReceiptRequestDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_PurchaseReceiptRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_PurchaseReceiptNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_PurchaseReceiptNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_PurchaseReceiptNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_PurchaseReceiptNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_PurchaseReceiptNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_PurchaseOrderDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ProductRecycleRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_ProductRecycleNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_ProductRecycleNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_ProductRecycleNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_ProductRecycleNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ProductRecycleNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_ProductRecycleMaterialDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_ProductRecycleMaterialDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_ProductRecycleMaterialDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_ProductRecycleMaterialDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ProductItemName", - table: "Store_ProductRecycleMaterialDetail", - newName: "ProductItem_Name"); - - migrationBuilder.RenameColumn( - name: "ProductItemDesc2", - table: "Store_ProductRecycleMaterialDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_ProductReceiptRequestDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_ProductReceiptRequestDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_ProductReceiptRequestDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_ProductReceiptRequestDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ProductReceiptRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_ProductReceiptNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_ProductReceiptNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_ProductReceiptNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_ProductReceiptNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ProductReceiptNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ProductL7PartsNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_ProductionReturnRequestDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_ProductionReturnRequestDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_ProductionReturnRequestDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_ProductionReturnRequestDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ProductionReturnRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_ProductionReturnNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_ProductionReturnNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_ProductionReturnNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_ProductionReturnNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ProductionReturnNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_ProductionPlanDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_ProductionPlanDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_ProductionPlanDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_ProductionPlanDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ProductionPlanDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_PreparationPlanDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_OfflineSettlementNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_OfflineSettlementNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_OfflineSettlementNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_OfflineSettlementNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_OfflineSettlementNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_NoOkConvertOkNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_NoOkConvertOkNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_NoOkConvertOkNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_NoOkConvertOkNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_NoOkConvertOkNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_MaterialRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_JisProductReceiptNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_JisProductReceiptNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_JisProductReceiptNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_JisProductReceiptNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_JisProductReceiptNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_JisDeliverNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_JisDeliverNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_JisDeliverNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_JisDeliverNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_JisDeliverNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ToSupplierBatch", - table: "Store_ItemTransformRequestDetail", - newName: "ToItem_Name"); - - migrationBuilder.RenameColumn( - name: "ToItemName", - table: "Store_ItemTransformRequestDetail", - newName: "ToBatch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ToItemDesc2", - table: "Store_ItemTransformRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ToItemDesc1", - table: "Store_ItemTransformRequestDetail", - newName: "FromBatch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ToSupplierBatch", - table: "Store_ItemTransformNoteDetail", - newName: "ToItem_Name"); - - migrationBuilder.RenameColumn( - name: "ToItemName", - table: "Store_ItemTransformNoteDetail", - newName: "ToBatch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ToItemDesc2", - table: "Store_ItemTransformNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ToItemDesc1", - table: "Store_ItemTransformNoteDetail", - newName: "FromBatch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_IssueNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_IssueNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_IssueNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_IssueNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_IssueNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_IsolationNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_IsolationNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_IsolationNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_IsolationNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_IsolationNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_InventoryTransferNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_InventoryTransferNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_InventoryTransferNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_InventoryTransferNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_InventoryTransferNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_InventoryInitialNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_InventoryInitialNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_InventoryInitialNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_InventoryInitialNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_InventoryInitialNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_InspectRequestSummaryDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_InspectRequestSummaryDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_InspectRequestSummaryDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_InspectRequestSummaryDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_InspectRequestSummaryDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_InspectRequestDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_InspectRequestDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_InspectRequestDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_InspectRequestDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_InspectRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_InspectNoteSummaryDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_InspectNoteSummaryDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_InspectNoteSummaryDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_InspectNoteSummaryDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_InspectNoteSummaryDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_InspectNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_InspectNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_InspectNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_InspectNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_InspectNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_InspectAbnormalNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_InspectAbnormalNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_InspectAbnormalNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_InspectAbnormalNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_InspectAbnormalNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_DeliverRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_DeliverPlanDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_DeliverNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_DeliverNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_DeliverNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_DeliverNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_DeliverNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_CustomerReturnNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_CustomerReturnNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_CustomerReturnNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_CustomerReturnNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_CustomerReturnNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_CustomerAsnDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_CountPlanDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_CountPlanDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_CountPlanDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_CountPlanDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_CountPlanDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_CountNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_CountNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_CountNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_CountNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_CountNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_CountAdjustRequestDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_CountAdjustRequestDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_CountAdjustRequestDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_CountAdjustRequestDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_CountAdjustRequestDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_CountAdjustNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_CountAdjustNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_CountAdjustNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_CountAdjustNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_CountAdjustNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_ContainerBindNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_ContainerBindNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_ContainerBindNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_ContainerBindNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_ContainerBindNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_BackFlushNoteDetail", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_BackFlushNoteDetail", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_BackFlushNoteDetail", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_BackFlushNoteDetail", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_BackFlushNoteDetail", - newName: "Item_Name"); - - migrationBuilder.RenameColumn( - name: "SupplierBatch", - table: "Store_BackFlushNote", - newName: "Batch_SupplierBatch"); - - migrationBuilder.RenameColumn( - name: "ProduceDate", - table: "Store_BackFlushNote", - newName: "Batch_ProduceDate"); - - migrationBuilder.RenameColumn( - name: "ExpireDate", - table: "Store_BackFlushNote", - newName: "Batch_ExpireDate"); - - migrationBuilder.RenameColumn( - name: "ArriveDate", - table: "Store_BackFlushNote", - newName: "Batch_ArriveDate"); - - migrationBuilder.RenameColumn( - name: "ItemName", - table: "Store_BackFlushNote", - newName: "Item_Name"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_WorkOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_WorkOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ItemCode", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_WorkOrder", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_WorkOrder", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Reason", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_WarehouseTransferNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_WarehouseTransferNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_WarehouseTransferNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_UnplannedReceiptRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_UnplannedReceiptRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_UnplannedReceiptRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_UnplannedIssueRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_UnplannedIssueRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_UnplannedIssueRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_TransferRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_TransferRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_TransferRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_TransferRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_TransferRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Reason", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_TransferNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_TransferNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_TransferNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_TransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_TransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_SupplierAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_SupplierAsnDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_SupplierAsnDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_SupplierAsnDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_SupplierAsnDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_SupplierAsnDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "TimeWindow", - table: "Store_SupplierAsn", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ScrapRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ScrapRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ScrapRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_ScrapNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_ScrapNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_ScrapNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ScrapNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ScrapNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_SaleOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_SaleOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_ReceiptAbnormalNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_ReceiptAbnormalNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_ReceiptAbnormalNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_PutawayRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_PutawayRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_PutawayRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_PutawayNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_PutawayNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_PurchaseReturnRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_PurchaseReturnRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_PurchaseReturnRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Reason", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_PurchaseReceiptRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_PurchaseReceiptRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Batch_ArriveDate", - table: "Store_PurchaseReceiptRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "TimeWindow", - table: "Store_PurchaseReceiptRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_ProductRecycleNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_ProductRecycleNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_ProductRecycleNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_ProductRecycleMaterialDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_ProductRecycleMaterialDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_ProductRecycleMaterialDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "ProductItem_Desc1", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "ProductItem_Desc2", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_ProductReceiptRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_ProductReceiptRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_ProductReceiptRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "ItemCode", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_ProductionReturnRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_ProductionReturnRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_ProductionReturnRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_ProductionPlanDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_ProductionPlanDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_ProductionPlanDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ProductionPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ProductionPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_PreparationPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_PreparationPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_PreparationPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_OfflineSettlementNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_OfflineSettlementNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_OfflineSettlementNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_NoOkConvertOkNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_NoOkConvertOkNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_NoOkConvertOkNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_MaterialRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_MaterialRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_JisProductReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_JisProductReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_JisProductReceiptNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_JisDeliverNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_JisDeliverNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_JisDeliverNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItemCode", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "FromBatch_ArriveDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromBatch_ExpireDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromBatch_ProduceDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToBatch_ArriveDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToBatch_ExpireDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToBatch_ProduceDate", - table: "Store_ItemTransformRequestDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToItem_Desc1", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToItem_Desc2", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToItemCode", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "FromBatch_ArriveDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromBatch_ExpireDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "FromBatch_ProduceDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToBatch_ArriveDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToBatch_ExpireDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToBatch_ProduceDate", - table: "Store_ItemTransformNoteDetail", - type: "datetime2", - nullable: true); - - migrationBuilder.AddColumn( - name: "ToItem_Desc1", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "ToItem_Desc2", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_IssueNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_IssueNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_IsolationNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_IsolationNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_IsolationNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_IsolationNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_IsolationNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Reason", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_InventoryTransferNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_InventoryTransferNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_InventoryTransferNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_InventoryInitialNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_InventoryInitialNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_InventoryInitialNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_InspectRequestSummaryDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_InspectRequestSummaryDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_InspectRequestSummaryDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_InspectRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_InspectRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_InspectRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_InspectRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_InspectRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_InspectNoteSummaryDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_InspectNoteSummaryDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_InspectNoteSummaryDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_InspectNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_InspectNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_InspectNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_InspectNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_InspectNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_InspectAbnormalNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_InspectAbnormalNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_InspectAbnormalNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_DeliverRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_DeliverRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_DeliverRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_DeliverPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_DeliverPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_DeliverPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_DeliverNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_DeliverNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToLocationGroup", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ToLocationArea", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationGroup", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromLocationArea", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_CustomerReturnNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_CustomerReturnNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_CustomerReturnNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_CustomerAsnDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_CustomerAsnDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_CustomerAsnDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_CountPlanDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_CountPlanDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_CountPlanDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_CountPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_CountPlanDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_CountNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_CountNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_CountNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_CountNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_CountNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_CountAdjustRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_CountAdjustRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_CountAdjustRequestDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "LocationGroup", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "LocationArea", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_CountAdjustNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_CountAdjustNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_CountAdjustNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_ContainerBindNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_ContainerBindNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_ContainerBindNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "PackingCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Lot", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ItemCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ContainerCode", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_BackFlushNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_BackFlushNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_BackFlushNoteDetail", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Uom", - table: "Store_BackFlushNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Batch_ProduceDate", - table: "Store_BackFlushNote", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ExpireDate", - table: "Store_BackFlushNote", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "Batch_ArriveDate", - table: "Store_BackFlushNote", - type: "datetime2", - nullable: true, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AddColumn( - name: "Item_Desc1", - table: "Store_BackFlushNote", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.AddColumn( - name: "Item_Desc2", - table: "Store_BackFlushNote", - type: "nvarchar(1024)", - maxLength: 1024, - nullable: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_BackFlushNoteDetail_Number_ItemCode_Lot", - table: "Store_BackFlushNoteDetail", - columns: new[] { "Number", "ItemCode", "Lot" }, - unique: true, - filter: "[ItemCode] IS NOT NULL AND [Lot] IS NOT NULL"); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230208083909_MergeJobIntoStore.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230208083909_MergeJobIntoStore.Designer.cs deleted file mode 100644 index e4221d607..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230208083909_MergeJobIntoStore.Designer.cs +++ /dev/null @@ -1,19395 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230208083909_MergeJobIntoStore")] - partial class MergeJobIntoStore - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.12") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeliverNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_CheckJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Order") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_CheckJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .HasColumnType("int"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .HasColumnType("int"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountStage") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_CountJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CountTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_CountJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RequestType") - .HasColumnType("int"); - - b.Property("Stage") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_DeliverJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasColumnType("nvarchar(max)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_DeliverJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .HasColumnType("int"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .HasColumnType("int"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_InspectJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .HasColumnType("decimal(18,6)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_InspectJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_InspectJobSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .HasColumnType("int"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .HasColumnType("int"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .HasColumnType("int"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_IssueJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliveryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("DistributionType") - .HasColumnType("int"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Operation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanBeginTime") - .HasColumnType("datetime2"); - - b.Property("PlannedSplitRule") - .HasColumnType("int"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RoundedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruncType") - .HasColumnType("int"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_IssueJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerAddressCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerWarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_JisDeliverJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerName") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_JisDeliverJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_ProductionReturnJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_ProductionReturnJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(1); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromLocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .HasColumnType("int"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_ProductReceiveJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_ProductReceiveJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .HasColumnType("int"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PurchaseReceiptJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PurchaseReceiptJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptInspectStatus") - .HasColumnType("int"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PurchaseReturnJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PurchaseReturnJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(2); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PutawayJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PutawayJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .HasColumnType("int"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .HasColumnType("int"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateType") - .HasColumnType("int"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_UnplannedIssueJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_UnplannedIssueJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .HasColumnType("int"); - - b.Property("JobType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_UnplannedReceiptJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_UnplannedReceiptJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .HasColumnType("int"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .HasColumnType("int"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasColumnType("int"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WoStatus") - .HasColumnType("int"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CheckJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectJob", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJob", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230208083909_MergeJobIntoStore.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230208083909_MergeJobIntoStore.cs deleted file mode 100644 index 2fadde96a..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230208083909_MergeJobIntoStore.cs +++ /dev/null @@ -1,1613 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations; - -public partial class MergeJobIntoStore : Migration -{ - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.CreateTable( - name: "Job_CheckJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DeliverNoteNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_CheckJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_CountJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CountPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CountStage = table.Column(type: "int", nullable: false), - CountMethod = table.Column(type: "int", nullable: false), - Type = table.Column(type: "int", nullable: false), - Description = table.Column(type: "nvarchar(max)", nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_CountJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_DeliverJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - DeliverRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - CustomerAddressCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeliverTime = table.Column(type: "datetime2", nullable: false), - DeliverPlanNumber = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_DeliverJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_InspectJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - InspectNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(max)", nullable: true), - NextAction = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_InspectJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_IssueJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RequestType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - MaterialRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - UseOnTheWayLocation = table.Column(type: "bit", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_IssueJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_JisDeliverJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Customer = table.Column(type: "nvarchar(max)", nullable: true), - CustomerAddressCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomerLocationCode = table.Column(type: "nvarchar(max)", nullable: true), - CustomerWarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), - ProjectCode = table.Column(type: "nvarchar(max)", nullable: true), - Position = table.Column(type: "nvarchar(max)", nullable: true), - PlanTime = table.Column(type: "datetime2", nullable: false), - ContainerQty = table.Column(type: "decimal(18,6)", nullable: false), - ItemQty = table.Column(type: "decimal(18,6)", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_JisDeliverJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_ProductionReturnJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ProductionReturnRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_ProductionReturnJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_ProductReceiveJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ProductionPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_ProductReceiveJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_PurchaseReceiptJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Type = table.Column(type: "int", nullable: false), - TimeWindow = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PlanArriveDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_PurchaseReceiptJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_PurchaseReturnJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PurchaseReturnRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReturnReason = table.Column(type: "nvarchar(max)", nullable: true), - ReturnTime = table.Column(type: "datetime2", nullable: false), - ReturnType = table.Column(type: "int", nullable: false, defaultValue: 2), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_PurchaseReturnJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_PutawayJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PutawayMode = table.Column(type: "int", nullable: false), - SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - InspectNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProductReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Type = table.Column(type: "int", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_PutawayJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_UnplannedIssueJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UnplannedIssueRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BuildDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_UnplannedIssueJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_UnplannedReceiptJob", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - UnplannedReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - BuildDate = table.Column(type: "datetime2", nullable: false), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), - JobType = table.Column(type: "int", nullable: false), - JobStatus = table.Column(type: "int", nullable: false), - Priority = table.Column(type: "int", nullable: false, defaultValue: 0), - PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), - WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), - AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), - AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - AcceptTime = table.Column(type: "datetime2", nullable: true), - CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), - CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CompleteTime = table.Column(type: "datetime2", nullable: true), - WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_UnplannedReceiptJob", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Job_CheckJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Order = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CustomerItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ArriveDate = table.Column(type: "datetime2", nullable: false), - ProduceDate = table.Column(type: "datetime2", nullable: false), - ExpireDate = table.Column(type: "datetime2", nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_CheckJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_CheckJobDetail_Job_CheckJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_CheckJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_CountJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - CountLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - InventoryQty = table.Column(type: "decimal(18,6)", nullable: false), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - InventoryLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CountQty = table.Column(type: "decimal(18,6)", nullable: false), - CountTime = table.Column(type: "datetime2", nullable: true), - CountOperator = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CountDescription = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ArriveDate = table.Column(type: "datetime2", nullable: false), - ProduceDate = table.Column(type: "datetime2", nullable: false), - ExpireDate = table.Column(type: "datetime2", nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_CountJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_CountJobDetail_Job_CountJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_CountJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_DeliverJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationArea = table.Column(type: "nvarchar(max)", nullable: true), - ToLocationGroup = table.Column(type: "nvarchar(max)", nullable: true), - ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - OnTheWayLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendArriveDate = table.Column(type: "datetime2", nullable: false), - RecommendProduceDate = table.Column(type: "datetime2", nullable: false), - RecommendExpireDate = table.Column(type: "datetime2", nullable: false), - RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), - HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledArriveDate = table.Column(type: "datetime2", nullable: false), - HandledProduceDate = table.Column(type: "datetime2", nullable: false), - HandledExpireDate = table.Column(type: "datetime2", nullable: false), - HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledQty = table.Column(type: "decimal(18,6)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_DeliverJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_DeliverJobDetail_Job_DeliverJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_DeliverJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_InspectJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - InspectType = table.Column(type: "int", nullable: false), - SamplePercent = table.Column(type: "decimal(18,6)", nullable: false), - Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReceiveQty = table.Column(type: "decimal(18,6)", nullable: false), - InspectQty = table.Column(type: "decimal(18,6)", nullable: false), - GoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - FailedReason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FailedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - CrackQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - InspectUser = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - NotPassedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - AbcClass = table.Column(type: "nvarchar(max)", nullable: true), - DetailInspectStatus = table.Column(type: "int", nullable: false), - Appearance = table.Column(type: "nvarchar(max)", nullable: true), - Volume = table.Column(type: "nvarchar(max)", nullable: true), - Weight = table.Column(type: "nvarchar(max)", nullable: true), - OtherPropertyJson = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ArriveDate = table.Column(type: "datetime2", nullable: false), - ProduceDate = table.Column(type: "datetime2", nullable: false), - ExpireDate = table.Column(type: "datetime2", nullable: false), - LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_InspectJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_InspectJobDetail_Job_InspectJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_InspectJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_InspectJobSummaryDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - InspectType = table.Column(type: "int", nullable: false), - SamplePercent = table.Column(type: "decimal(18,6)", nullable: false), - Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReceiveQty = table.Column(type: "decimal(18,6)", nullable: false), - InspectQty = table.Column(type: "decimal(18,6)", nullable: false), - GoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - FailedReason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FailedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - CrackQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - InspectUser = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - NotPassedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), - SummaryInspectStatus = table.Column(type: "int", nullable: false), - AbcClass = table.Column(type: "nvarchar(max)", nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ArriveDate = table.Column(type: "datetime2", nullable: false), - ProduceDate = table.Column(type: "datetime2", nullable: false), - ExpireDate = table.Column(type: "datetime2", nullable: false), - InspectReport = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_InspectJobSummaryDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_InspectJobSummaryDetail_Job_InspectJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_InspectJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_IssueJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - RequestLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - OnTheWayLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - WorkStation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExpiredTime = table.Column(type: "datetime2", nullable: false), - Operation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - DistributionType = table.Column(type: "int", nullable: false), - TruncType = table.Column(type: "int", nullable: false), - RoundedQty = table.Column(type: "decimal(18,6)", nullable: false), - PlannedSplitRule = table.Column(type: "int", nullable: false), - PlanBeginTime = table.Column(type: "datetime2", nullable: false), - DeliveryQty = table.Column(type: "decimal(18,6)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendArriveDate = table.Column(type: "datetime2", nullable: false), - RecommendProduceDate = table.Column(type: "datetime2", nullable: false), - RecommendExpireDate = table.Column(type: "datetime2", nullable: false), - RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), - HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledArriveDate = table.Column(type: "datetime2", nullable: false), - HandledProduceDate = table.Column(type: "datetime2", nullable: false), - HandledExpireDate = table.Column(type: "datetime2", nullable: false), - HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledQty = table.Column(type: "decimal(18,6)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_IssueJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_IssueJobDetail_Job_IssueJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_IssueJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_JisDeliverJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ContainerName = table.Column(type: "nvarchar(max)", nullable: true), - ContainerDesc = table.Column(type: "nvarchar(max)", nullable: true), - ItemQty = table.Column(type: "decimal(18,6)", nullable: false), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Status = table.Column(type: "int", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(max)", nullable: true), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_JisDeliverJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_JisDeliverJobDetail_Job_JisDeliverJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_JisDeliverJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_ProductionReturnJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendArriveDate = table.Column(type: "datetime2", nullable: false), - RecommendProduceDate = table.Column(type: "datetime2", nullable: false), - RecommendExpireDate = table.Column(type: "datetime2", nullable: false), - RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), - HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledArriveDate = table.Column(type: "datetime2", nullable: false), - HandledProduceDate = table.Column(type: "datetime2", nullable: false), - HandledExpireDate = table.Column(type: "datetime2", nullable: false), - HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledQty = table.Column(type: "decimal(18,6)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_ProductionReturnJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_ProductionReturnJobDetail_Job_ProductionReturnJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_ProductionReturnJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_ProductReceiveJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - RawLocationCode = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendArriveDate = table.Column(type: "datetime2", nullable: false), - RecommendProduceDate = table.Column(type: "datetime2", nullable: false), - RecommendExpireDate = table.Column(type: "datetime2", nullable: false), - RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), - HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledArriveDate = table.Column(type: "datetime2", nullable: false), - HandledProduceDate = table.Column(type: "datetime2", nullable: false), - HandledExpireDate = table.Column(type: "datetime2", nullable: false), - HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledQty = table.Column(type: "decimal(18,6)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_ProductReceiveJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_ProductReceiveJobDetail_Job_ProductReceiveJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_ProductReceiveJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_PurchaseReceiptJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ArriveDate = table.Column(type: "datetime2", nullable: false), - PurchaseReceiptInspectStatus = table.Column(type: "int", nullable: false), - InspectPhotoJson = table.Column(type: "nvarchar(max)", nullable: true), - FailedReason = table.Column(type: "nvarchar(max)", nullable: true), - MassDefect = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPackUom = table.Column(type: "nvarchar(max)", nullable: true), - SupplierPackQty = table.Column(type: "decimal(18,6)", nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendArriveDate = table.Column(type: "datetime2", nullable: false), - RecommendProduceDate = table.Column(type: "datetime2", nullable: false), - RecommendExpireDate = table.Column(type: "datetime2", nullable: false), - RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), - HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledArriveDate = table.Column(type: "datetime2", nullable: false), - HandledProduceDate = table.Column(type: "datetime2", nullable: false), - HandledExpireDate = table.Column(type: "datetime2", nullable: false), - HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledQty = table.Column(type: "decimal(18,6)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_PurchaseReceiptJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_PurchaseReceiptJobDetail_Job_PurchaseReceiptJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_PurchaseReceiptJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_PurchaseReturnJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Reason = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendArriveDate = table.Column(type: "datetime2", nullable: false), - RecommendProduceDate = table.Column(type: "datetime2", nullable: false), - RecommendExpireDate = table.Column(type: "datetime2", nullable: false), - RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), - HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledArriveDate = table.Column(type: "datetime2", nullable: false), - HandledProduceDate = table.Column(type: "datetime2", nullable: false), - HandledExpireDate = table.Column(type: "datetime2", nullable: false), - HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledQty = table.Column(type: "decimal(18,6)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_PurchaseReturnJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_PurchaseReturnJobDetail_Job_PurchaseReturnJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_PurchaseReturnJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_PutawayJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendArriveDate = table.Column(type: "datetime2", nullable: false), - RecommendProduceDate = table.Column(type: "datetime2", nullable: false), - RecommendExpireDate = table.Column(type: "datetime2", nullable: false), - RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), - HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledArriveDate = table.Column(type: "datetime2", nullable: false), - HandledProduceDate = table.Column(type: "datetime2", nullable: false), - HandledExpireDate = table.Column(type: "datetime2", nullable: false), - HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledQty = table.Column(type: "decimal(18,6)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_PutawayJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_PutawayJobDetail_Job_PutawayJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_PutawayJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_UnplannedIssueJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendArriveDate = table.Column(type: "datetime2", nullable: false), - RecommendProduceDate = table.Column(type: "datetime2", nullable: false), - RecommendExpireDate = table.Column(type: "datetime2", nullable: false), - RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), - HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledArriveDate = table.Column(type: "datetime2", nullable: false), - HandledProduceDate = table.Column(type: "datetime2", nullable: false), - HandledExpireDate = table.Column(type: "datetime2", nullable: false), - HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledQty = table.Column(type: "decimal(18,6)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_UnplannedIssueJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_UnplannedIssueJobDetail_Job_UnplannedIssueJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_UnplannedIssueJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Job_UnplannedReceiptJobDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - Status = table.Column(type: "int", nullable: false), - RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendArriveDate = table.Column(type: "datetime2", nullable: false), - RecommendProduceDate = table.Column(type: "datetime2", nullable: false), - RecommendExpireDate = table.Column(type: "datetime2", nullable: false), - RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RecommendWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Uom = table.Column(type: "nvarchar(max)", nullable: true), - RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), - HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledArriveDate = table.Column(type: "datetime2", nullable: false), - HandledProduceDate = table.Column(type: "datetime2", nullable: false), - HandledExpireDate = table.Column(type: "datetime2", nullable: false), - HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - HandledQty = table.Column(type: "decimal(18,6)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Job_UnplannedReceiptJobDetail", x => x.Id); - table.ForeignKey( - name: "FK_Job_UnplannedReceiptJobDetail_Job_UnplannedReceiptJob_MasterID", - column: x => x.MasterID, - principalTable: "Job_UnplannedReceiptJob", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_Job_CheckJob_Number", - table: "Job_CheckJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_CheckJobDetail_MasterID", - table: "Job_CheckJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_CountJob_Number", - table: "Job_CountJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_CountJobDetail_MasterID", - table: "Job_CountJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_DeliverJob_Number", - table: "Job_DeliverJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_DeliverJobDetail_MasterID", - table: "Job_DeliverJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_InspectJob_Number", - table: "Job_InspectJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_InspectJobDetail_MasterID", - table: "Job_InspectJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_InspectJobSummaryDetail_MasterID", - table: "Job_InspectJobSummaryDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_IssueJob_Number", - table: "Job_IssueJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_IssueJobDetail_MasterID", - table: "Job_IssueJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_JisDeliverJob_Number", - table: "Job_JisDeliverJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_JisDeliverJobDetail_MasterID", - table: "Job_JisDeliverJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_ProductionReturnJob_Number", - table: "Job_ProductionReturnJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_ProductionReturnJobDetail_MasterID", - table: "Job_ProductionReturnJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_ProductReceiveJob_Number", - table: "Job_ProductReceiveJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_ProductReceiveJobDetail_MasterID", - table: "Job_ProductReceiveJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_PurchaseReceiptJob_Number", - table: "Job_PurchaseReceiptJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_PurchaseReceiptJobDetail_MasterID", - table: "Job_PurchaseReceiptJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_PurchaseReturnJob_Number", - table: "Job_PurchaseReturnJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_PurchaseReturnJobDetail_MasterID", - table: "Job_PurchaseReturnJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_PutawayJob_Number", - table: "Job_PutawayJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_PutawayJobDetail_MasterID", - table: "Job_PutawayJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_UnplannedIssueJob_Number", - table: "Job_UnplannedIssueJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_UnplannedIssueJobDetail_MasterID", - table: "Job_UnplannedIssueJobDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Job_UnplannedReceiptJob_Number", - table: "Job_UnplannedReceiptJob", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Job_UnplannedReceiptJobDetail_MasterID", - table: "Job_UnplannedReceiptJobDetail", - column: "MasterID"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Job_CheckJobDetail"); - - migrationBuilder.DropTable( - name: "Job_CountJobDetail"); - - migrationBuilder.DropTable( - name: "Job_DeliverJobDetail"); - - migrationBuilder.DropTable( - name: "Job_InspectJobDetail"); - - migrationBuilder.DropTable( - name: "Job_InspectJobSummaryDetail"); - - migrationBuilder.DropTable( - name: "Job_IssueJobDetail"); - - migrationBuilder.DropTable( - name: "Job_JisDeliverJobDetail"); - - migrationBuilder.DropTable( - name: "Job_ProductionReturnJobDetail"); - - migrationBuilder.DropTable( - name: "Job_ProductReceiveJobDetail"); - - migrationBuilder.DropTable( - name: "Job_PurchaseReceiptJobDetail"); - - migrationBuilder.DropTable( - name: "Job_PurchaseReturnJobDetail"); - - migrationBuilder.DropTable( - name: "Job_PutawayJobDetail"); - - migrationBuilder.DropTable( - name: "Job_UnplannedIssueJobDetail"); - - migrationBuilder.DropTable( - name: "Job_UnplannedReceiptJobDetail"); - - migrationBuilder.DropTable( - name: "Job_CheckJob"); - - migrationBuilder.DropTable( - name: "Job_CountJob"); - - migrationBuilder.DropTable( - name: "Job_DeliverJob"); - - migrationBuilder.DropTable( - name: "Job_InspectJob"); - - migrationBuilder.DropTable( - name: "Job_IssueJob"); - - migrationBuilder.DropTable( - name: "Job_JisDeliverJob"); - - migrationBuilder.DropTable( - name: "Job_ProductionReturnJob"); - - migrationBuilder.DropTable( - name: "Job_ProductReceiveJob"); - - migrationBuilder.DropTable( - name: "Job_PurchaseReceiptJob"); - - migrationBuilder.DropTable( - name: "Job_PurchaseReturnJob"); - - migrationBuilder.DropTable( - name: "Job_PutawayJob"); - - migrationBuilder.DropTable( - name: "Job_UnplannedIssueJob"); - - migrationBuilder.DropTable( - name: "Job_UnplannedReceiptJob"); - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215014905_StoreEnumToString.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215014905_StoreEnumToString.Designer.cs deleted file mode 100644 index b67a694f8..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215014905_StoreEnumToString.Designer.cs +++ /dev/null @@ -1,19749 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230215014905_StoreEnumToString")] - partial class StoreEnumToString - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.13") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeliverNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_CheckJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Order") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_CheckJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountStage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_CountJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CountTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_CountJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Stage") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasDefaultValue("First"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_DeliverJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasColumnType("nvarchar(max)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_DeliverJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_InspectJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .HasColumnType("decimal(18,6)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_InspectJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_InspectJobSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_IssueJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliveryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("DistributionType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Operation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanBeginTime") - .HasColumnType("datetime2"); - - b.Property("PlannedSplitRule") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RoundedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruncType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_IssueJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerAddressCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerWarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_JisDeliverJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerName") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_JisDeliverJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasDefaultValue("New"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_ProductionReturnJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_ProductionReturnJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasDefaultValue("New"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromLocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_ProductReceiveJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_ProductReceiveJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PurchaseReceiptJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PurchaseReceiptJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasDefaultValue("AfterPuton"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PurchaseReturnJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PurchaseReturnJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasDefaultValue("AfterPuton"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutawayMode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PutawayJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PutawayJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_UnplannedIssueJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_UnplannedIssueJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_UnplannedReceiptJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_UnplannedReceiptJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WoStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CheckJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectJob", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJob", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215014905_StoreEnumToString.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215014905_StoreEnumToString.cs deleted file mode 100644 index b02dbbc35..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215014905_StoreEnumToString.cs +++ /dev/null @@ -1,3221 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - public partial class StoreEnumToString : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "WoStatus", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_WorkOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_UnplannedReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_UnplannedIssueRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_TransferRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_TransferRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_TransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_SupplierAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "CreateType", - table: "Store_SupplierAsn", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ScrapRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "LineStatus", - table: "Store_SaleOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "SoStatus", - table: "Store_SaleOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_PutawayRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_PutawayRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_PutawayRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "PutawayMode", - table: "Store_PutawayRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_PutawayNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "Store_PurchaseReturnRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_PurchaseReturnRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PurchaseReturnNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "Store_PurchaseReturnNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "AfterPuton", - oldClrType: typeof(int), - oldType: "int", - oldDefaultValue: 2); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_PurchaseReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "PurchaseReceiptInspectStatus", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_PurchaseReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PurchaseReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "LineStatus", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "OrderStatus", - table: "Store_PurchaseOrder", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ProductRecycleRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ReceiptType", - table: "Store_ProductReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ProductionReturnRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "New", - oldClrType: typeof(int), - oldType: "int", - oldDefaultValue: 1); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ProductionPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "LineStatus", - table: "Store_PreparationPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PreparationPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_MaterialRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_MaterialRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "New", - oldClrType: typeof(int), - oldType: "int", - oldDefaultValue: 1); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ReceiptType", - table: "Store_JisProductReceiptNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ItemTransformRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_IsolationNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "TransferType", - table: "Store_InventoryTransferNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "SummaryInspectStatus", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DetailInspectStatus", - table: "Store_InspectRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_InspectRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "SummaryInspectStatus", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DetailInspectStatus", - table: "Store_InspectNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "NextAction", - table: "Store_InspectNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ExchangeData", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ErrorCode", - table: "Store_ExchangeData", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DataAction", - table: "Store_ExchangeData", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_DeliverRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DeliverRequestType", - table: "Store_DeliverRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_DeliverPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DeliverRequestType", - table: "Store_DeliverNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Stage", - table: "Store_CountPlanDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_CountPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Stage", - table: "Store_CountPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "First", - oldClrType: typeof(int), - oldType: "int", - oldDefaultValue: 1); - - migrationBuilder.AlterColumn( - name: "RequestType", - table: "Store_CountPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_CountPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "CountMethod", - table: "Store_CountPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Stage", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DetailStatus", - table: "Store_CountNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_CountNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Stage", - table: "Store_CountNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_CountAdjustRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "TransInOut", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "BindType", - table: "Store_ContainerBindNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_UnplannedReceiptJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_UnplannedReceiptJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_UnplannedReceiptJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_UnplannedIssueJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_UnplannedIssueJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_UnplannedIssueJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_PutawayJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Job_PutawayJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "PutawayMode", - table: "Job_PutawayJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_PutawayJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_PutawayJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_PurchaseReturnJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "Job_PurchaseReturnJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "AfterPuton", - oldClrType: typeof(int), - oldType: "int", - oldDefaultValue: 2); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_PurchaseReturnJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_PurchaseReturnJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_PurchaseReceiptJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "PurchaseReceiptInspectStatus", - table: "Job_PurchaseReceiptJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Job_PurchaseReceiptJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_PurchaseReceiptJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_PurchaseReceiptJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_ProductReceiveJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_ProductReceiveJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_ProductReceiveJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_ProductionReturnJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_ProductionReturnJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_ProductionReturnJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_JisDeliverJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_JisDeliverJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "TruncType", - table: "Job_IssueJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_IssueJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "PlannedSplitRule", - table: "Job_IssueJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DistributionType", - table: "Job_IssueJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_IssueJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_IssueJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "SummaryInspectStatus", - table: "Job_InspectJobSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Job_InspectJobSummaryDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_InspectJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Job_InspectJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "DetailInspectStatus", - table: "Job_InspectJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "NextAction", - table: "Job_InspectJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_InspectJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_InspectJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_DeliverJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_DeliverJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_DeliverJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_CountJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Job_CountJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_CountJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_CountJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "CountStage", - table: "Job_CountJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "CountMethod", - table: "Job_CountJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_CheckJobDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_CheckJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_CheckJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "WoStatus", - table: "Store_WorkOrder", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_WorkOrder", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_WarehouseTransferNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_WarehouseTransferNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_UnplannedReceiptRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_UnplannedReceiptRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_UnplannedReceiptNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_UnplannedIssueRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_UnplannedIssueRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_UnplannedIssueNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_TransferRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_TransferRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_TransferRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_TransferNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_TransferNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_SupplierAsn", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "CreateType", - table: "Store_SupplierAsn", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ScrapRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_ScrapNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_ScrapNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LineStatus", - table: "Store_SaleOrderDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "SoStatus", - table: "Store_SaleOrder", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ReceiptAbnormalNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_PutawayRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_PutawayRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_PutawayRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_PutawayRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "PutawayMode", - table: "Store_PutawayRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_PutawayNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_PutawayNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_PutawayNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PurchaseReturnRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "Store_PurchaseReturnRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_PurchaseReturnRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PurchaseReturnNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PurchaseReturnNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "Store_PurchaseReturnNote", - type: "int", - nullable: false, - defaultValue: 2, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "AfterPuton"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_PurchaseReceiptRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PurchaseReceiptNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "PurchaseReceiptInspectStatus", - table: "Store_PurchaseReceiptNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_PurchaseReceiptNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PurchaseReceiptNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LineStatus", - table: "Store_PurchaseOrderDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "OrderStatus", - table: "Store_PurchaseOrder", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ProductRecycleRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ProductRecycleRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ProductRecycleNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ProductRecycleMaterialDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ProductReceiptRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ProductReceiptNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ReceiptType", - table: "Store_ProductReceiptNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_ProductionReturnRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_ProductionReturnRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ProductionReturnRequest", - type: "int", - nullable: false, - defaultValue: 1, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "New"); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_ProductionReturnNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_ProductionReturnNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ProductionPlan", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "LineStatus", - table: "Store_PreparationPlanDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_PreparationPlan", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_OfflineSettlementNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_NoOkConvertOkNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_NoOkConvertOkNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_MaterialRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_MaterialRequest", - type: "int", - nullable: false, - defaultValue: 1, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "New"); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_JisProductReceiptNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ReceiptType", - table: "Store_JisProductReceiptNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_JisDeliverNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_JisDeliverNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_ItemTransformRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_ItemTransformRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ItemTransformRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_ItemTransformNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_ItemTransformNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_IssueNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_IssueNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_IsolationNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_IsolationNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_InventoryTransferNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_InventoryTransferNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "TransferType", - table: "Store_InventoryTransferNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_InventoryInitialNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "SummaryInspectStatus", - table: "Store_InspectRequestSummaryDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Store_InspectRequestSummaryDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_InspectRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Store_InspectRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "DetailInspectStatus", - table: "Store_InspectRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_InspectRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "SummaryInspectStatus", - table: "Store_InspectNoteSummaryDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Store_InspectNoteSummaryDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_InspectNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Store_InspectNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "DetailInspectStatus", - table: "Store_InspectNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "NextAction", - table: "Store_InspectNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_ExchangeData", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ErrorCode", - table: "Store_ExchangeData", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "DataAction", - table: "Store_ExchangeData", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_DeliverRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "DeliverRequestType", - table: "Store_DeliverRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_DeliverPlan", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_DeliverNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_DeliverNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "DeliverRequestType", - table: "Store_DeliverNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ToStatus", - table: "Store_CustomerReturnNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "FromStatus", - table: "Store_CustomerReturnNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_CountPlanDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Stage", - table: "Store_CountPlanDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_CountPlan", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Stage", - table: "Store_CountPlan", - type: "int", - nullable: false, - defaultValue: 1, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "First"); - - migrationBuilder.AlterColumn( - name: "RequestType", - table: "Store_CountPlan", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_CountPlan", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "CountMethod", - table: "Store_CountPlan", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_CountNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Stage", - table: "Store_CountNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "DetailStatus", - table: "Store_CountNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_CountNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Stage", - table: "Store_CountNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_CountAdjustRequestDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_CountAdjustRequest", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "TransInOut", - table: "Store_CountAdjustNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_CountAdjustNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "BindType", - table: "Store_ContainerBindNote", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Store_BackFlushNoteDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_UnplannedReceiptJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_UnplannedReceiptJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_UnplannedReceiptJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_UnplannedIssueJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_UnplannedIssueJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_UnplannedIssueJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_PutawayJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Job_PutawayJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "PutawayMode", - table: "Job_PutawayJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_PutawayJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_PutawayJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_PurchaseReturnJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "Job_PurchaseReturnJob", - type: "int", - nullable: false, - defaultValue: 2, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "AfterPuton"); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_PurchaseReturnJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_PurchaseReturnJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_PurchaseReceiptJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "PurchaseReceiptInspectStatus", - table: "Job_PurchaseReceiptJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Job_PurchaseReceiptJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_PurchaseReceiptJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_PurchaseReceiptJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_ProductReceiveJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_ProductReceiveJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_ProductReceiveJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_ProductionReturnJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_ProductionReturnJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_ProductionReturnJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_JisDeliverJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_JisDeliverJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "TruncType", - table: "Job_IssueJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_IssueJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "PlannedSplitRule", - table: "Job_IssueJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "DistributionType", - table: "Job_IssueJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_IssueJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_IssueJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "SummaryInspectStatus", - table: "Job_InspectJobSummaryDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Job_InspectJobSummaryDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_InspectJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "InspectType", - table: "Job_InspectJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "DetailInspectStatus", - table: "Job_InspectJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "NextAction", - table: "Job_InspectJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_InspectJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_InspectJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_DeliverJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_DeliverJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_DeliverJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_CountJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Job_CountJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_CountJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_CountJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "CountStage", - table: "Job_CountJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "CountMethod", - table: "Job_CountJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_CheckJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobType", - table: "Job_CheckJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "JobStatus", - table: "Job_CheckJob", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215072221_StoreDbEnumToString.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215072221_StoreDbEnumToString.Designer.cs deleted file mode 100644 index 2128e44ac..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215072221_StoreDbEnumToString.Designer.cs +++ /dev/null @@ -1,19739 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230215072221_StoreDbEnumToString")] - partial class StoreDbEnumToString - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.13") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeliverNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_CheckJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Order") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_CheckJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - 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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountStage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_CountJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CountTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_CountJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_DeliverJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasColumnType("nvarchar(max)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_DeliverJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2(7)"); - - b.Property("ErrorCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ErrorMessage") - .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("Number") - .ValueGeneratedOnAdd() - .HasColumnType("bigint"); - - SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Number"), 1L, 1); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_InspectJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .HasColumnType("decimal(18,6)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_InspectJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_InspectJobSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_IssueJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliveryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("DistributionType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Operation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanBeginTime") - .HasColumnType("datetime2"); - - b.Property("PlannedSplitRule") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RoundedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruncType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_IssueJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerAddressCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerWarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_JisDeliverJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerName") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_JisDeliverJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .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("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_ProductionReturnJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_ProductionReturnJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromLocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasColumnType("nvarchar(450)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("L7Part") - .HasColumnType("nvarchar(450)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(450)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(450)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_ProductReceiveJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_ProductReceiveJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PurchaseReceiptJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PurchaseReceiptJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PurchaseReturnJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PurchaseReturnJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutawayMode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PutawayJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PutawayJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_UnplannedIssueJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_UnplannedIssueJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_UnplannedReceiptJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_UnplannedReceiptJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(4096) - .HasColumnType("nvarchar(max)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WoStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .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("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CheckJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectJob", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJob", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215072221_StoreDbEnumToString.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215072221_StoreDbEnumToString.cs deleted file mode 100644 index cb48e3bb7..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230215072221_StoreDbEnumToString.cs +++ /dev/null @@ -1,125 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - public partial class StoreDbEnumToString : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "Store_PurchaseReturnNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "AfterPuton"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ProductionReturnRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "New"); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_MaterialRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "New"); - - migrationBuilder.AlterColumn( - name: "Stage", - table: "Store_CountPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "First"); - - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "Job_PurchaseReturnJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldDefaultValue: "AfterPuton"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "Store_PurchaseReturnNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "AfterPuton", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_ProductionReturnRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "New", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "RequestStatus", - table: "Store_MaterialRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "New", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Stage", - table: "Store_CountPlan", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "First", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "ReturnType", - table: "Job_PurchaseReturnJob", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "AfterPuton", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230401163806_Added_AddPurchaseOrder.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230401163806_Added_AddPurchaseOrder.Designer.cs deleted file mode 100644 index a44e6e7c8..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230401163806_Added_AddPurchaseOrder.Designer.cs +++ /dev/null @@ -1,20949 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230401163806_Added_AddPurchaseOrder")] - partial class Added_AddPurchaseOrder - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.13") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeliverNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_CheckJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Order") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_CheckJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountStage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_CountJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CountTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_CountJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_DeliverJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasColumnType("nvarchar(max)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_DeliverJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ErrorMessage") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_InspectJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .HasColumnType("decimal(18,6)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_InspectJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_InspectJobSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_IssueJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliveryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("DistributionType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Operation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanBeginTime") - .HasColumnType("datetime2"); - - b.Property("PlannedSplitRule") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RoundedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruncType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_IssueJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerAddressCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerWarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_JisDeliverJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerName") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_JisDeliverJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_ProductionReturnJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_ProductionReturnJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromLocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("L7Part") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_ProductReceiveJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_ProductReceiveJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PurchaseReceiptJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PurchaseReceiptJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PurchaseReturnJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PurchaseReturnJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutawayMode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PutawayJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PutawayJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_UnplannedIssueJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_UnplannedIssueJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_UnplannedReceiptJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_UnplannedReceiptJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WoStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CheckJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectJob", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJob", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230401163806_Added_AddPurchaseOrder.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230401163806_Added_AddPurchaseOrder.cs deleted file mode 100644 index c673fa53d..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230401163806_Added_AddPurchaseOrder.cs +++ /dev/null @@ -1,6905 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - public partial class Added_AddPurchaseOrder : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.RenameColumn( - name: "RecommendWarehouseCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "RecommendToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationGroup", - table: "Job_UnplannedReceiptJobDetail", - newName: "RecommendToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationErpCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "RecommendToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "RecommendToLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationArea", - table: "Job_UnplannedReceiptJobDetail", - newName: "RecommendToLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledWarehouseCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "HandledToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationGroup", - table: "Job_UnplannedReceiptJobDetail", - newName: "HandledToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledLocationErpCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "HandledToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "HandledToLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationArea", - table: "Job_UnplannedReceiptJobDetail", - newName: "HandledToLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendWarehouseCode", - table: "Job_UnplannedIssueJobDetail", - newName: "RecommendFromWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationGroup", - table: "Job_UnplannedIssueJobDetail", - newName: "RecommendFromLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationErpCode", - table: "Job_UnplannedIssueJobDetail", - newName: "RecommendFromLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationCode", - table: "Job_UnplannedIssueJobDetail", - newName: "RecommendFromLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationArea", - table: "Job_UnplannedIssueJobDetail", - newName: "RecommendFromLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledWarehouseCode", - table: "Job_UnplannedIssueJobDetail", - newName: "HandledFromWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationGroup", - table: "Job_UnplannedIssueJobDetail", - newName: "HandledFromLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledLocationErpCode", - table: "Job_UnplannedIssueJobDetail", - newName: "HandledFromLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationCode", - table: "Job_UnplannedIssueJobDetail", - newName: "HandledFromLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationArea", - table: "Job_UnplannedIssueJobDetail", - newName: "HandledFromLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendWarehouseCode", - table: "Job_PutawayJobDetail", - newName: "RecommendToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationGroup", - table: "Job_PutawayJobDetail", - newName: "RecommendToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationErpCode", - table: "Job_PutawayJobDetail", - newName: "RecommendToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationCode", - table: "Job_PutawayJobDetail", - newName: "RecommendToLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationArea", - table: "Job_PutawayJobDetail", - newName: "RecommendToLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledWarehouseCode", - table: "Job_PutawayJobDetail", - newName: "HandledToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationGroup", - table: "Job_PutawayJobDetail", - newName: "HandledToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledLocationErpCode", - table: "Job_PutawayJobDetail", - newName: "HandledToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationCode", - table: "Job_PutawayJobDetail", - newName: "HandledToLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationArea", - table: "Job_PutawayJobDetail", - newName: "HandledToLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendWarehouseCode", - table: "Job_PurchaseReturnJobDetail", - newName: "RecommendFromWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationGroup", - table: "Job_PurchaseReturnJobDetail", - newName: "RecommendFromLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationErpCode", - table: "Job_PurchaseReturnJobDetail", - newName: "RecommendFromLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationCode", - table: "Job_PurchaseReturnJobDetail", - newName: "RecommendFromLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationArea", - table: "Job_PurchaseReturnJobDetail", - newName: "RecommendFromLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledWarehouseCode", - table: "Job_PurchaseReturnJobDetail", - newName: "HandledFromWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationGroup", - table: "Job_PurchaseReturnJobDetail", - newName: "HandledFromLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledLocationErpCode", - table: "Job_PurchaseReturnJobDetail", - newName: "HandledFromLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationCode", - table: "Job_PurchaseReturnJobDetail", - newName: "HandledFromLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationArea", - table: "Job_PurchaseReturnJobDetail", - newName: "HandledFromLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendWarehouseCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "RecommendToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationGroup", - table: "Job_PurchaseReceiptJobDetail", - newName: "RecommendToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationErpCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "RecommendToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "RecommendToLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationArea", - table: "Job_PurchaseReceiptJobDetail", - newName: "RecommendToLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledWarehouseCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "HandledToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationGroup", - table: "Job_PurchaseReceiptJobDetail", - newName: "HandledToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledLocationErpCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "HandledToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "HandledToLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationArea", - table: "Job_PurchaseReceiptJobDetail", - newName: "HandledToLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendWarehouseCode", - table: "Job_ProductReceiveJobDetail", - newName: "RecommendToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationGroup", - table: "Job_ProductReceiveJobDetail", - newName: "RecommendToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationErpCode", - table: "Job_ProductReceiveJobDetail", - newName: "RecommendToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationCode", - table: "Job_ProductReceiveJobDetail", - newName: "RecommendToLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationArea", - table: "Job_ProductReceiveJobDetail", - newName: "RecommendToLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledWarehouseCode", - table: "Job_ProductReceiveJobDetail", - newName: "HandledToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationGroup", - table: "Job_ProductReceiveJobDetail", - newName: "HandledToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledLocationErpCode", - table: "Job_ProductReceiveJobDetail", - newName: "HandledToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationCode", - table: "Job_ProductReceiveJobDetail", - newName: "HandledToLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationArea", - table: "Job_ProductReceiveJobDetail", - newName: "HandledToLocationArea"); - - migrationBuilder.RenameColumn( - name: "ToWarehouseCode", - table: "Job_ProductionReturnJobDetail", - newName: "RecommendToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "ToLocationGroup", - table: "Job_ProductionReturnJobDetail", - newName: "RecommendToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "ToLocationErpCode", - table: "Job_ProductionReturnJobDetail", - newName: "RecommendToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "ToLocationCode", - table: "Job_ProductionReturnJobDetail", - newName: "RecommendToLocationCode"); - - migrationBuilder.RenameColumn( - name: "ToLocationArea", - table: "Job_ProductionReturnJobDetail", - newName: "RecommendToLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendWarehouseCode", - table: "Job_ProductionReturnJobDetail", - newName: "HandledToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationGroup", - table: "Job_ProductionReturnJobDetail", - newName: "HandledToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationErpCode", - table: "Job_ProductionReturnJobDetail", - newName: "HandledToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationCode", - table: "Job_ProductionReturnJobDetail", - newName: "HandledToLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationArea", - table: "Job_ProductionReturnJobDetail", - newName: "HandledToLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledWarehouseCode", - table: "Job_ProductionReturnJobDetail", - newName: "FromWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationGroup", - table: "Job_ProductionReturnJobDetail", - newName: "FromLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledLocationErpCode", - table: "Job_ProductionReturnJobDetail", - newName: "FromLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationCode", - table: "Job_ProductionReturnJobDetail", - newName: "FromLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationArea", - table: "Job_ProductionReturnJobDetail", - newName: "FromLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendWarehouseCode", - table: "Job_IssueJobDetail", - newName: "RecommendFromWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationGroup", - table: "Job_IssueJobDetail", - newName: "RecommendFromLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationErpCode", - table: "Job_IssueJobDetail", - newName: "RecommendFromLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationCode", - table: "Job_IssueJobDetail", - newName: "RecommendFromLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationArea", - table: "Job_IssueJobDetail", - newName: "RecommendFromLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledWarehouseCode", - table: "Job_IssueJobDetail", - newName: "HandledFromWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationGroup", - table: "Job_IssueJobDetail", - newName: "HandledFromLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledLocationErpCode", - table: "Job_IssueJobDetail", - newName: "HandledFromLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationCode", - table: "Job_IssueJobDetail", - newName: "HandledFromLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationArea", - table: "Job_IssueJobDetail", - newName: "HandledFromLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendWarehouseCode", - table: "Job_DeliverJobDetail", - newName: "RecommendFromWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationGroup", - table: "Job_DeliverJobDetail", - newName: "RecommendFromLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationErpCode", - table: "Job_DeliverJobDetail", - newName: "RecommendFromLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationCode", - table: "Job_DeliverJobDetail", - newName: "RecommendFromLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendLocationArea", - table: "Job_DeliverJobDetail", - newName: "RecommendFromLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledWarehouseCode", - table: "Job_DeliverJobDetail", - newName: "HandledFromWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationGroup", - table: "Job_DeliverJobDetail", - newName: "HandledFromLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledLocationErpCode", - table: "Job_DeliverJobDetail", - newName: "HandledFromLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationCode", - table: "Job_DeliverJobDetail", - newName: "HandledFromLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledLocationArea", - table: "Job_DeliverJobDetail", - newName: "HandledFromLocationArea"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_WorkOrderDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_WorkOrder", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_WarehouseTransferNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedReceiptRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "HandledArriveDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledExpireDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledProduceDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledQty", - table: "Store_UnplannedReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "HandledSupplierBatch", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationArea", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationErpCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationGroup", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToWarehouseCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendArriveDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendExpireDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendProduceDate", - table: "Store_UnplannedReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendQty", - table: "Store_UnplannedReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RecommendSupplierBatch", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationArea", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationErpCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationGroup", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToWarehouseCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedReceiptNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedIssueRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "HandledArriveDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledExpireDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledFromLocationArea", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationErpCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationGroup", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromWarehouseCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledProduceDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledQty", - table: "Store_UnplannedIssueNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "HandledSupplierBatch", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendArriveDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendExpireDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationArea", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationErpCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationGroup", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromWarehouseCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendProduceDate", - table: "Store_UnplannedIssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendQty", - table: "Store_UnplannedIssueNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RecommendSupplierBatch", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedIssueNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_TransferRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_TransferRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_TransferNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_TransferNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_SupplierAsnDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_SupplierAsn", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ScrapRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ScrapRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ScrapNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromPackingCode", - table: "Store_ScrapNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ScrapNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_SaleOrderDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_SaleOrder", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_RecycledMaterialReceiptNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ReceiptAbnormalNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PutawayRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PutawayRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PutawayNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "HandledArriveDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledExpireDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledProduceDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledQty", - table: "Store_PutawayNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "HandledSupplierBatch", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationArea", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationErpCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToWarehouseCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendArriveDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendExpireDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendProduceDate", - table: "Store_PutawayNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendQty", - table: "Store_PutawayNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RecommendSupplierBatch", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationArea", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationErpCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationGroup", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToWarehouseCode", - table: "Store_PutawayNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PutawayNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReturnRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "HandledArriveDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledExpireDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledFromLocationArea", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationErpCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationGroup", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromWarehouseCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledProduceDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledQty", - table: "Store_PurchaseReturnNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "HandledSupplierBatch", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendArriveDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendExpireDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationArea", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationErpCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationGroup", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromWarehouseCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendProduceDate", - table: "Store_PurchaseReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendQty", - table: "Store_PurchaseReturnNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RecommendSupplierBatch", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReturnNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReceiptRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "HandledArriveDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledExpireDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledProduceDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledQty", - table: "Store_PurchaseReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "HandledSupplierBatch", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationArea", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationErpCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationGroup", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToWarehouseCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendArriveDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendExpireDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendProduceDate", - table: "Store_PurchaseReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendQty", - table: "Store_PurchaseReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RecommendSupplierBatch", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationArea", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationErpCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationGroup", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToWarehouseCode", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReceiptNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "PlanUserCode", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Ctype", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ExpireDate", - table: "Store_PurchaseOrderDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "Lot", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OrderRemark", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "PlanArriveDate", - table: "Store_PurchaseOrderDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "ProduceDate", - table: "Store_PurchaseOrderDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseOrder", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductRecycleRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductRecycleNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductReceiptRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "HandledArriveDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledExpireDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledProduceDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledQty", - table: "Store_ProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "HandledSupplierBatch", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationArea", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationErpCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationGroup", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToWarehouseCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendArriveDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendExpireDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendProduceDate", - table: "Store_ProductReceiptNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendQty", - table: "Store_ProductReceiptNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RecommendSupplierBatch", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationArea", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationErpCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationGroup", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToWarehouseCode", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductReceiptNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProductNo", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Position", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "L7Part", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Configuration", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(450)", - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductL7PartsNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionReturnRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "HandledArriveDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledExpireDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledProduceDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledQty", - table: "Store_ProductionReturnNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "HandledSupplierBatch", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationArea", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationErpCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToLocationGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledToWarehouseCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendArriveDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendExpireDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendProduceDate", - table: "Store_ProductionReturnNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendQty", - table: "Store_ProductionReturnNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RecommendSupplierBatch", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationArea", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationErpCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToLocationGroup", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendToWarehouseCode", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionReturnNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionPlanDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionPlan", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PreparationPlanDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PreparationPlan", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_OfflineSettlementNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_NoOkConvertOkNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_MaterialRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_MaterialRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_JisProductReceiptNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_JisDeliverNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ItemTransformRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ItemTransformNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_IssueNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "HandledArriveDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledExpireDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledFromLocationArea", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationErpCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromWarehouseCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledProduceDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledQty", - table: "Store_IssueNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "HandledSupplierBatch", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendArriveDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendExpireDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationArea", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationErpCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationGroup", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromWarehouseCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendProduceDate", - table: "Store_IssueNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendQty", - table: "Store_IssueNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RecommendSupplierBatch", - table: "Store_IssueNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_IssueNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_IsolationNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_IsolationNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InventoryTransferNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InventoryInitialNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectAbnormalNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ExchangeData", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Number", - table: "Store_ExchangeData", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .OldAnnotation("SqlServer:Identity", "1, 1"); - - migrationBuilder.AlterColumn( - name: "ErrorMessage", - table: "Store_ExchangeData", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EffectiveDate", - table: "Store_ExchangeData", - type: "datetime2", - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2(7)"); - - migrationBuilder.AlterColumn( - name: "DataAction", - table: "Store_ExchangeData", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverPlanDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverPlan", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "HandledArriveDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledContainerCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledExpireDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledFromLocationArea", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationErpCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromLocationGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledFromWarehouseCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledLot", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledPackingCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "HandledProduceDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "HandledQty", - table: "Store_DeliverNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "HandledSupplierBatch", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendArriveDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendContainerCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendExpireDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationArea", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationErpCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromLocationGroup", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendFromWarehouseCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendLot", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendPackingCode", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AddColumn( - name: "RecommendProduceDate", - table: "Store_DeliverNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "RecommendQty", - table: "Store_DeliverNoteDetail", - type: "decimal(18,6)", - nullable: false, - defaultValue: 0m); - - migrationBuilder.AddColumn( - name: "RecommendSupplierBatch", - table: "Store_DeliverNoteDetail", - type: "nvarchar(64)", - maxLength: 64, - nullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CustomerReturnNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CustomerAsnDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CustomerAsn", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountPlanDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountPlan", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountAdjustRequest", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountAdjustNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ContainerBindNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_BackFlushNote", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_UnplannedReceiptJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_UnplannedReceiptJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_UnplannedIssueJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_UnplannedIssueJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PutawayJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PutawayJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PurchaseReturnJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PurchaseReturnJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PurchaseReceiptJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PurchaseReceiptJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_ProductReceiveJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_ProductReceiveJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_ProductionReturnJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_ProductionReturnJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_JisDeliverJobDetail", - type: "nvarchar(max)", - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_JisDeliverJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_JisDeliverJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_IssueJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_IssueJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_InspectJobSummaryDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_InspectJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_InspectJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_DeliverJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_DeliverJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_CountJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_CountJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_CheckJobDetail", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_CheckJob", - type: "nvarchar(3072)", - maxLength: 3072, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(max)", - oldMaxLength: 4096, - oldNullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "HandledArriveDate", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledExpireDate", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledProduceDate", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledSupplierBatch", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationArea", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationErpCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationGroup", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToWarehouseCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendArriveDate", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendExpireDate", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendProduceDate", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendSupplierBatch", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationArea", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationErpCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationGroup", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToWarehouseCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledArriveDate", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledExpireDate", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationArea", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationErpCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationGroup", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromWarehouseCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledProduceDate", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledSupplierBatch", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendArriveDate", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendExpireDate", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationArea", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationErpCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationGroup", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromWarehouseCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendProduceDate", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendSupplierBatch", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledArriveDate", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledExpireDate", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledProduceDate", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledSupplierBatch", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationArea", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationErpCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationGroup", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToWarehouseCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendArriveDate", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendExpireDate", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendProduceDate", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendSupplierBatch", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationArea", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationErpCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationGroup", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToWarehouseCode", - table: "Store_PutawayNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledArriveDate", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledExpireDate", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationArea", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationErpCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationGroup", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromWarehouseCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledProduceDate", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledSupplierBatch", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendArriveDate", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendExpireDate", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationArea", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationErpCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationGroup", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromWarehouseCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendProduceDate", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendSupplierBatch", - table: "Store_PurchaseReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledArriveDate", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledExpireDate", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledProduceDate", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledSupplierBatch", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationArea", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationErpCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationGroup", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToWarehouseCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendArriveDate", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendExpireDate", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendProduceDate", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendSupplierBatch", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationArea", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationErpCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationGroup", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToWarehouseCode", - table: "Store_PurchaseReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "PlanUserCode", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "Ctype", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "ExpireDate", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "Lot", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "OrderRemark", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "PlanArriveDate", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "ProduceDate", - table: "Store_PurchaseOrderDetail"); - - migrationBuilder.DropColumn( - name: "HandledArriveDate", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledExpireDate", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledProduceDate", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledSupplierBatch", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationArea", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationErpCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationGroup", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToWarehouseCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendArriveDate", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendExpireDate", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendProduceDate", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendSupplierBatch", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationArea", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationErpCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationGroup", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToWarehouseCode", - table: "Store_ProductReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledArriveDate", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledExpireDate", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledProduceDate", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledSupplierBatch", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationArea", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationErpCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToLocationGroup", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledToWarehouseCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendArriveDate", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendExpireDate", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendProduceDate", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendSupplierBatch", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationArea", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationErpCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToLocationGroup", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendToWarehouseCode", - table: "Store_ProductionReturnNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledArriveDate", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledExpireDate", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationArea", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationErpCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationGroup", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromWarehouseCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledProduceDate", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledSupplierBatch", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendArriveDate", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendExpireDate", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationArea", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationErpCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationGroup", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromWarehouseCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendProduceDate", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendSupplierBatch", - table: "Store_IssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledArriveDate", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledContainerCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledExpireDate", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationArea", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationErpCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromLocationGroup", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledFromWarehouseCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledLot", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledPackingCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledProduceDate", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledQty", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "HandledSupplierBatch", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendArriveDate", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendContainerCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendExpireDate", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationArea", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationErpCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromLocationGroup", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendFromWarehouseCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendLot", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendPackingCode", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendProduceDate", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendQty", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.DropColumn( - name: "RecommendSupplierBatch", - table: "Store_DeliverNoteDetail"); - - migrationBuilder.RenameColumn( - name: "RecommendToWarehouseCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "RecommendWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationGroup", - table: "Job_UnplannedReceiptJobDetail", - newName: "RecommendLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationErpCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "RecommendLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "RecommendLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationArea", - table: "Job_UnplannedReceiptJobDetail", - newName: "RecommendLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledToWarehouseCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "HandledWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationGroup", - table: "Job_UnplannedReceiptJobDetail", - newName: "HandledLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationErpCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "HandledLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationCode", - table: "Job_UnplannedReceiptJobDetail", - newName: "HandledLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationArea", - table: "Job_UnplannedReceiptJobDetail", - newName: "HandledLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendFromWarehouseCode", - table: "Job_UnplannedIssueJobDetail", - newName: "RecommendWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationGroup", - table: "Job_UnplannedIssueJobDetail", - newName: "RecommendLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationErpCode", - table: "Job_UnplannedIssueJobDetail", - newName: "RecommendLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationCode", - table: "Job_UnplannedIssueJobDetail", - newName: "RecommendLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationArea", - table: "Job_UnplannedIssueJobDetail", - newName: "RecommendLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledFromWarehouseCode", - table: "Job_UnplannedIssueJobDetail", - newName: "HandledWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationGroup", - table: "Job_UnplannedIssueJobDetail", - newName: "HandledLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationErpCode", - table: "Job_UnplannedIssueJobDetail", - newName: "HandledLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationCode", - table: "Job_UnplannedIssueJobDetail", - newName: "HandledLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationArea", - table: "Job_UnplannedIssueJobDetail", - newName: "HandledLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendToWarehouseCode", - table: "Job_PutawayJobDetail", - newName: "RecommendWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationGroup", - table: "Job_PutawayJobDetail", - newName: "RecommendLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationErpCode", - table: "Job_PutawayJobDetail", - newName: "RecommendLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationCode", - table: "Job_PutawayJobDetail", - newName: "RecommendLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationArea", - table: "Job_PutawayJobDetail", - newName: "RecommendLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledToWarehouseCode", - table: "Job_PutawayJobDetail", - newName: "HandledWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationGroup", - table: "Job_PutawayJobDetail", - newName: "HandledLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationErpCode", - table: "Job_PutawayJobDetail", - newName: "HandledLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationCode", - table: "Job_PutawayJobDetail", - newName: "HandledLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationArea", - table: "Job_PutawayJobDetail", - newName: "HandledLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendFromWarehouseCode", - table: "Job_PurchaseReturnJobDetail", - newName: "RecommendWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationGroup", - table: "Job_PurchaseReturnJobDetail", - newName: "RecommendLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationErpCode", - table: "Job_PurchaseReturnJobDetail", - newName: "RecommendLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationCode", - table: "Job_PurchaseReturnJobDetail", - newName: "RecommendLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationArea", - table: "Job_PurchaseReturnJobDetail", - newName: "RecommendLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledFromWarehouseCode", - table: "Job_PurchaseReturnJobDetail", - newName: "HandledWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationGroup", - table: "Job_PurchaseReturnJobDetail", - newName: "HandledLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationErpCode", - table: "Job_PurchaseReturnJobDetail", - newName: "HandledLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationCode", - table: "Job_PurchaseReturnJobDetail", - newName: "HandledLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationArea", - table: "Job_PurchaseReturnJobDetail", - newName: "HandledLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendToWarehouseCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "RecommendWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationGroup", - table: "Job_PurchaseReceiptJobDetail", - newName: "RecommendLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationErpCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "RecommendLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "RecommendLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationArea", - table: "Job_PurchaseReceiptJobDetail", - newName: "RecommendLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledToWarehouseCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "HandledWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationGroup", - table: "Job_PurchaseReceiptJobDetail", - newName: "HandledLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationErpCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "HandledLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationCode", - table: "Job_PurchaseReceiptJobDetail", - newName: "HandledLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationArea", - table: "Job_PurchaseReceiptJobDetail", - newName: "HandledLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendToWarehouseCode", - table: "Job_ProductReceiveJobDetail", - newName: "RecommendWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationGroup", - table: "Job_ProductReceiveJobDetail", - newName: "RecommendLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationErpCode", - table: "Job_ProductReceiveJobDetail", - newName: "RecommendLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationCode", - table: "Job_ProductReceiveJobDetail", - newName: "RecommendLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationArea", - table: "Job_ProductReceiveJobDetail", - newName: "RecommendLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledToWarehouseCode", - table: "Job_ProductReceiveJobDetail", - newName: "HandledWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationGroup", - table: "Job_ProductReceiveJobDetail", - newName: "HandledLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationErpCode", - table: "Job_ProductReceiveJobDetail", - newName: "HandledLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationCode", - table: "Job_ProductReceiveJobDetail", - newName: "HandledLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationArea", - table: "Job_ProductReceiveJobDetail", - newName: "HandledLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendToWarehouseCode", - table: "Job_ProductionReturnJobDetail", - newName: "ToWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationGroup", - table: "Job_ProductionReturnJobDetail", - newName: "ToLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationErpCode", - table: "Job_ProductionReturnJobDetail", - newName: "ToLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationCode", - table: "Job_ProductionReturnJobDetail", - newName: "ToLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendToLocationArea", - table: "Job_ProductionReturnJobDetail", - newName: "ToLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledToWarehouseCode", - table: "Job_ProductionReturnJobDetail", - newName: "RecommendWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationGroup", - table: "Job_ProductionReturnJobDetail", - newName: "RecommendLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationErpCode", - table: "Job_ProductionReturnJobDetail", - newName: "RecommendLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationCode", - table: "Job_ProductionReturnJobDetail", - newName: "RecommendLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledToLocationArea", - table: "Job_ProductionReturnJobDetail", - newName: "RecommendLocationArea"); - - migrationBuilder.RenameColumn( - name: "FromWarehouseCode", - table: "Job_ProductionReturnJobDetail", - newName: "HandledWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "FromLocationGroup", - table: "Job_ProductionReturnJobDetail", - newName: "HandledLocationGroup"); - - migrationBuilder.RenameColumn( - name: "FromLocationErpCode", - table: "Job_ProductionReturnJobDetail", - newName: "HandledLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "FromLocationCode", - table: "Job_ProductionReturnJobDetail", - newName: "HandledLocationCode"); - - migrationBuilder.RenameColumn( - name: "FromLocationArea", - table: "Job_ProductionReturnJobDetail", - newName: "HandledLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendFromWarehouseCode", - table: "Job_IssueJobDetail", - newName: "RecommendWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationGroup", - table: "Job_IssueJobDetail", - newName: "RecommendLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationErpCode", - table: "Job_IssueJobDetail", - newName: "RecommendLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationCode", - table: "Job_IssueJobDetail", - newName: "RecommendLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationArea", - table: "Job_IssueJobDetail", - newName: "RecommendLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledFromWarehouseCode", - table: "Job_IssueJobDetail", - newName: "HandledWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationGroup", - table: "Job_IssueJobDetail", - newName: "HandledLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationErpCode", - table: "Job_IssueJobDetail", - newName: "HandledLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationCode", - table: "Job_IssueJobDetail", - newName: "HandledLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationArea", - table: "Job_IssueJobDetail", - newName: "HandledLocationArea"); - - migrationBuilder.RenameColumn( - name: "RecommendFromWarehouseCode", - table: "Job_DeliverJobDetail", - newName: "RecommendWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationGroup", - table: "Job_DeliverJobDetail", - newName: "RecommendLocationGroup"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationErpCode", - table: "Job_DeliverJobDetail", - newName: "RecommendLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationCode", - table: "Job_DeliverJobDetail", - newName: "RecommendLocationCode"); - - migrationBuilder.RenameColumn( - name: "RecommendFromLocationArea", - table: "Job_DeliverJobDetail", - newName: "RecommendLocationArea"); - - migrationBuilder.RenameColumn( - name: "HandledFromWarehouseCode", - table: "Job_DeliverJobDetail", - newName: "HandledWarehouseCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationGroup", - table: "Job_DeliverJobDetail", - newName: "HandledLocationGroup"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationErpCode", - table: "Job_DeliverJobDetail", - newName: "HandledLocationErpCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationCode", - table: "Job_DeliverJobDetail", - newName: "HandledLocationCode"); - - migrationBuilder.RenameColumn( - name: "HandledFromLocationArea", - table: "Job_DeliverJobDetail", - newName: "HandledLocationArea"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_WorkOrderDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_WorkOrder", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_WarehouseTransferNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_WarehouseTransferNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedReceiptRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedReceiptNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedIssueRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_UnplannedIssueNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_TransferRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_TransferRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_TransferNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_TransferNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_SupplierAsnDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_SupplierAsn", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ScrapRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ScrapRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ScrapNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "FromPackingCode", - table: "Store_ScrapNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ScrapNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_SaleOrderDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_SaleOrder", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_RecycledMaterialReceiptNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_RecycledMaterialReceiptNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ReceiptAbnormalNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ReceiptAbnormalNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PutawayRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PutawayRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PutawayNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PutawayNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReturnRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReturnRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReturnNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReturnNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReceiptRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReceiptRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReceiptNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseReceiptNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseOrderDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PurchaseOrder", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductRecycleRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductRecycleRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductRecycleNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductRecycleNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductRecycleMaterialDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductReceiptRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductReceiptRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductReceiptNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductReceiptNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "ProductNo", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Position", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "L7Part", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Configuration", - table: "Store_ProductL7PartsNoteDetail", - type: "nvarchar(450)", - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductL7PartsNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionReturnRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionReturnRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionReturnNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionReturnNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionPlanDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ProductionPlan", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PreparationPlanDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_PreparationPlan", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_OfflineSettlementNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_OfflineSettlementNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_NoOkConvertOkNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_NoOkConvertOkNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_MaterialRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_MaterialRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_JisProductReceiptNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_JisProductReceiptNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_JisDeliverNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_JisDeliverNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ItemTransformRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ItemTransformRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ItemTransformNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ItemTransformNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_IssueNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_IssueNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_IsolationNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_IsolationNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InventoryTransferNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InventoryTransferNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InventoryInitialNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InventoryInitialNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectRequestSummaryDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectNoteSummaryDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectAbnormalNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_InspectAbnormalNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ExchangeData", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Number", - table: "Store_ExchangeData", - type: "bigint", - nullable: false, - oldClrType: typeof(long), - oldType: "bigint") - .Annotation("SqlServer:Identity", "1, 1"); - - migrationBuilder.AlterColumn( - name: "ErrorMessage", - table: "Store_ExchangeData", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "EffectiveDate", - table: "Store_ExchangeData", - type: "datetime2(7)", - nullable: false, - oldClrType: typeof(DateTime), - oldType: "datetime2"); - - migrationBuilder.AlterColumn( - name: "DataAction", - table: "Store_ExchangeData", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - oldClrType: typeof(int), - oldType: "int"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverPlanDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverPlan", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_DeliverNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CustomerReturnNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CustomerReturnNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CustomerAsnDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CustomerAsn", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountPlanDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountPlan", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountAdjustRequestDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountAdjustRequest", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountAdjustNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_CountAdjustNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ContainerBindNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_ContainerBindNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_BackFlushNoteDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Store_BackFlushNote", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_UnplannedReceiptJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_UnplannedReceiptJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_UnplannedIssueJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_UnplannedIssueJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PutawayJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PutawayJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PurchaseReturnJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PurchaseReturnJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PurchaseReceiptJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_PurchaseReceiptJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_ProductReceiveJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_ProductReceiveJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_ProductionReturnJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_ProductionReturnJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Status", - table: "Job_JisDeliverJobDetail", - type: "int", - nullable: false, - oldClrType: typeof(string), - oldType: "nvarchar(max)"); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_JisDeliverJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_JisDeliverJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_IssueJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_IssueJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_InspectJobSummaryDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_InspectJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_InspectJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_DeliverJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_DeliverJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_CountJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_CountJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_CheckJobDetail", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - - migrationBuilder.AlterColumn( - name: "Remark", - table: "Job_CheckJob", - type: "nvarchar(max)", - maxLength: 4096, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(3072)", - oldMaxLength: 3072, - oldNullable: true); - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230404020712_Added_Store_Add_SupplierAdress_SupplierName.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230404020712_Added_Store_Add_SupplierAdress_SupplierName.Designer.cs deleted file mode 100644 index 5e1a93dfa..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230404020712_Added_Store_Add_SupplierAdress_SupplierName.Designer.cs +++ /dev/null @@ -1,20973 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - [Migration("20230404020712_Added_Store_Add_SupplierAddress_SupplierName")] - partial class Added_Store_Add_SupplierAddress_SupplierName - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.SqlServer) - .HasAnnotation("ProductVersion", "6.0.13") - .HasAnnotation("Relational:MaxIdentifierLength", 128); - - SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductRecycleNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_BackFlushNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("IsOffLine") - .HasColumnType("bit"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_BackFlushNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeliverNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_CheckJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Order") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_CheckJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BindTime") - .HasColumnType("datetime2"); - - b.Property("BindType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - 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("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ContainerBindNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_ContainerBindNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountAdjustRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountNoteNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAdjusted") - .HasColumnType("bit"); - - b.Property("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AdjustQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransInOut") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountNoteNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountAdjustRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_CountAdjustRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountStage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_CountJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CountTime") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InventoryLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_CountJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("Adjusted") - .HasColumnType("bit"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CountPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CountMethod") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Description") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("EndTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JsonInventoryStatus") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonItemCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("JsonLocationCodes") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CountPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("AuditCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AuditCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("AuditCountTime") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CountLabel") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailStatus") - .HasColumnType("int"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FinalCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FirstCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("FirstCountTime") - .HasColumnType("datetime2"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RepeatCountDescription") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountOperator") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RepeatCountQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("RepeatCountTime") - .HasColumnType("datetime2"); - - b.Property("Stage") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "CountLabel") - .IsUnique(); - - b.ToTable("Store_CountPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BeginTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .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("DockCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EndTime") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_CustomerAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Customer") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_CustomerReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_CustomerReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_DeliverJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasColumnType("nvarchar(max)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_DeliverJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("DeliverRequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_DeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Project") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoNumber", "SoLine") - .IsUnique() - .HasFilter("[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); - - b.ToTable("Store_DeliverPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("CustomerAddressCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverRequestType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_DeliverRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AreaCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_DeliverRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ExchangeData", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DataAction") - .HasColumnType("int"); - - b.Property("DataContent") - .HasColumnType("nvarchar(max)"); - - b.Property("DataIdentityCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DataType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DestinationSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ErrorCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ErrorMessage") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .HasColumnType("bigint"); - - b.Property("ReadTime") - .HasColumnType("datetime2"); - - b.Property("Reader") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RetryTimes") - .HasColumnType("int"); - - b.Property("SourceSystem") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WriteTime") - .HasColumnType("datetime2"); - - b.Property("Writer") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.ToTable("Store_ExchangeData", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_InspectJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .HasColumnType("decimal(18,6)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_InspectJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_InspectJobSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("NextAction") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("Appearance") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OtherPropertyJson") - .HasColumnType("nvarchar(max)"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Volume") - .HasColumnType("nvarchar(max)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Weight") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("FailedReason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("InspectUser") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_InspectNoteSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InspectRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("Attributes") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DetailInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_InspectRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbcClass") - .HasColumnType("nvarchar(max)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CrackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("GoodQty") - .HasColumnType("decimal(18,6)"); - - b.Property("InspectQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("InspectReport") - .HasColumnType("nvarchar(max)"); - - b.Property("InspectType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NotPassedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ReceiveQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SamplePercent") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SummaryInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "Lot") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InspectRequestSummaryDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryInitialNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_InventoryInitialNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TransferType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_InventoryTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_InventoryTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IsolationNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IsolationNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MaterialRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_IssueJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliveryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("DistributionType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Operation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanBeginTime") - .HasColumnType("datetime2"); - - b.Property("PlannedSplitRule") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RoundedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruncType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_IssueJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RequestType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_IssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("IssueTime") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("FromPackingCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_IssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConcurrencyStamp") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ItemTransformRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromArriveDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromProduceDate") - .HasColumnType("datetime2"); - - b.Property("FromQty") - .HasColumnType("decimal(18,6)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToArriveDate") - .HasColumnType("datetime2"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToExpireDate") - .HasColumnType("datetime2"); - - b.Property("ToItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToProduceDate") - .HasColumnType("datetime2"); - - b.Property("ToQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ItemTransformRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerAddressCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CustomerWarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_JisDeliverJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerDesc") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerName") - .HasColumnType("nvarchar(max)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_JisDeliverJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ArrivalTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Customer") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CustomerAddressCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TotalPackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisDeliverNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DeliverTime") - .HasColumnType("datetime2"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnlineType") - .HasColumnType("nvarchar(max)"); - - b.Property("PackCapacity") - .HasColumnType("nvarchar(max)"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Stage") - .HasColumnType("nvarchar(max)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("UsedFor") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_JisDeliverNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContainerQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemQty") - .HasColumnType("decimal(18,6)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SeqNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_JisProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PreparationPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_MaterialRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpiredTime") - .HasColumnType("datetime2"); - - b.Property("FromLocationArea") - .HasColumnType("nvarchar(max)"); - - b.Property("IssuedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationArea") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationGroup") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "ToLocationCode") - .IsUnique(); - - b.ToTable("Store_MaterialRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_NoOkConvertOkNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_NoOkConvertOkNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_OfflineSettlementNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PreparationPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LatestTime") - .HasColumnType("datetime2"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WorkStation") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_PreparationPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("PlanTime") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionPlan", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("GoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .HasColumnType("int"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("NoGoodQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductionPlanDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_ProductionReturnJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_ProductionReturnJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductionReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_ProductionReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("ItemCode"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromLocationCode") - .IsUnique(); - - b.ToTable("Store_ProductionReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("Configuration") - .HasColumnType("nvarchar(max)"); - - b.Property("ContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasColumnType("nvarchar(max)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("Status") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Year") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductL7PartsNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CanBuy") - .HasColumnType("bit"); - - b.Property("CanMake") - .HasColumnType("bit"); - - b.Property("Configuration") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FATA") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("L7Part") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Position") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductNo") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Program") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasColumnType("int"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RowID") - .HasColumnType("int"); - - b.Property("State") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductNo", "Position", "Configuration", "L7Part") - .IsUnique() - .HasFilter("[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); - - b.ToTable("Store_ProductL7PartsNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SourceNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkShop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_ProductReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanDate") - .HasColumnType("datetime2"); - - b.Property("ProdLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductionPlanNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Team") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnQty") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ProductReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductionPlanNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_ProductReceiveJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProdLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_ProductReceiveJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProductItemCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProductPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ProductItemCode", "ItemCode"); - - b.ToTable("Store_ProductRecycleMaterialDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("RecycleTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Shift") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.Property("Workshop") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("BomVersion") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RawLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_ProductRecycleRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("DueDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("OrderStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasColumnType("nvarchar(max)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("IsConsignment") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Lot") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderRemark") - .HasColumnType("nvarchar(max)"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProjectCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutAwayQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceivedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ShippedQty") - .HasColumnType("decimal(18,6)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("ItemCode", "Number", "PoLine") - .IsUnique() - .HasFilter("[PoLine] IS NOT NULL"); - - b.ToTable("Store_PurchaseOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PurchaseReceiptJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PurchaseReceiptJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiveTime") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FailedReason") - .HasColumnType("nvarchar(max)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("InspectPhotoJson") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MassDefect") - .HasColumnType("nvarchar(max)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("PurchaseReceiptInspectStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PurchaseReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("DockCode") - .IsRequired() - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_PurchaseReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PurchaseReturnJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PurchaseReturnJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReturnRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ReturnReason") - .HasColumnType("nvarchar(max)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReturnTime") - .HasColumnType("datetime2"); - - b.Property("ReturnType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_PurchaseReturnRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("AsnNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PutawayMode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_PutawayJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_PutawayJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("InspectNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProductReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); - - b.ToTable("Store_PutawayNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("InspectNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("ProductReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PurchaseReceiptRequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("PutawayMode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReceiptNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RpNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_PutawayRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("InventoryQty") - .HasColumnType("decimal(18,6)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_PutawayRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AsnNumber") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("SupplierCode"); - - b.HasIndex("AsnNumber", "Number", "SupplierCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AbnormalType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("Photos") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReceiptNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ReceiptNumber") - .IsUnique(); - - b.ToTable("Store_ReceiptAbnormalNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode") - .IsUnique(); - - b.ToTable("Store_RecycledMaterialReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OrderDate") - .HasColumnType("datetime2"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SoStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SoType") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TaxRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(0m); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Version") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("CustomerCode"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_SaleOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ConvertRate") - .ValueGeneratedOnAdd() - .HasColumnType("decimal(18,6)") - .HasDefaultValue(1m); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("CustomerPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("CustomerPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LineStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SoLine") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "SoLine", "ItemCode") - .IsUnique(); - - b.ToTable("Store_SaleOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("ScrapRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(450)"); - - b.Property("FromPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); - - b.ToTable("Store_ScrapNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_ScrapRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "LocationCode") - .IsUnique(); - - b.ToTable("Store_ScrapRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ContactEmail") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ContactPhone") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreateType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("DockCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DueDate") - .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("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PlanArriveDate") - .HasColumnType("datetime2"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RpNumber") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ShipDate") - .HasColumnType("datetime2"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierAddress") - .HasColumnType("nvarchar(max)"); - - b.Property("SupplierCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("SupplierName") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("TimeWindow") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TruckNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.HasIndex("SupplierCode"); - - b.ToTable("Store_SupplierAsn", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("ConvertRate") - .HasColumnType("decimal(18,6)"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("Ctype") - .HasColumnType("nvarchar(max)"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("PlanUserCode") - .HasColumnType("nvarchar(max)"); - - b.Property("PoLine") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoLine"); - - b.Property("PoNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PoNumber"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("ProjectCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("RecommendErpCode") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("SupplierPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierPackUom") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode", "PackingCode") - .IsUnique(); - - b.ToTable("Store_SupplierAsnDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasMaxLength(40) - .HasColumnType("nvarchar(40)") - .HasColumnName("ConcurrencyStamp"); - - b.Property("ConfirmTime") - .HasColumnType("datetime2"); - - b.Property("Confirmed") - .HasColumnType("bit"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestNumber") - .HasColumnType("nvarchar(max)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("OnTheWayLocationCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_TransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - 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("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UseOnTheWayLocation") - .HasColumnType("bit"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_TransferRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasColumnType("nvarchar(max)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Store_TransferRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_UnplannedIssueJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_UnplannedIssueJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedIssueRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationArea"); - - b.Property("HandledFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationCode"); - - b.Property("HandledFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationErpCode"); - - b.Property("HandledFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromLocationGroup"); - - b.Property("HandledFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledFromWarehouseCode"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendFromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationArea"); - - b.Property("RecommendFromLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationCode"); - - b.Property("RecommendFromLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationErpCode"); - - b.Property("RecommendFromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromLocationGroup"); - - b.Property("RecommendFromWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendFromWarehouseCode"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedIssueRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedIssueRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptTime") - .HasColumnType("datetime2"); - - b.Property("AcceptUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("AcceptUserName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - b.Property("CompleteTime") - .HasColumnType("datetime2"); - - b.Property("CompleteUserId") - .HasColumnType("uniqueidentifier"); - - b.Property("CompleteUserName") - .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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("IsAutoComplete") - .ValueGeneratedOnAdd() - .HasColumnType("bit") - .HasDefaultValue(false); - - b.Property("JobDescription") - .HasMaxLength(1024) - .HasColumnType("nvarchar(1024)"); - - b.Property("JobStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("JobType") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Priority") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("PriorityIncrement") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasDefaultValue(0); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("UpStreamJobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WarehouseCode") - .HasColumnType("nvarchar(max)"); - - b.Property("WorkGroupCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Job_UnplannedReceiptJob", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJobDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.ToTable("Job_UnplannedReceiptJobDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("UnplannedReceiptRequestNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("HandledArriveDate") - .HasColumnType("datetime2"); - - b.Property("HandledContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledContainerCode"); - - b.Property("HandledExpireDate") - .HasColumnType("datetime2"); - - b.Property("HandledLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledLot"); - - b.Property("HandledPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledPackingCode"); - - b.Property("HandledProduceDate") - .HasColumnType("datetime2"); - - b.Property("HandledQty") - .HasColumnType("decimal(18,6)"); - - b.Property("HandledSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledSupplierBatch"); - - b.Property("HandledToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationArea"); - - b.Property("HandledToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationCode"); - - b.Property("HandledToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationErpCode"); - - b.Property("HandledToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToLocationGroup"); - - b.Property("HandledToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("HandledToWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("ReasonCode") - .HasColumnType("nvarchar(max)"); - - b.Property("RecommendArriveDate") - .HasColumnType("datetime2"); - - b.Property("RecommendContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendContainerCode"); - - b.Property("RecommendExpireDate") - .HasColumnType("datetime2"); - - b.Property("RecommendLot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendLot"); - - b.Property("RecommendPackingCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendPackingCode"); - - b.Property("RecommendProduceDate") - .HasColumnType("datetime2"); - - b.Property("RecommendQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RecommendSupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendSupplierBatch"); - - b.Property("RecommendToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationArea"); - - b.Property("RecommendToLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationCode"); - - b.Property("RecommendToLocationErpCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationErpCode"); - - b.Property("RecommendToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToLocationGroup"); - - b.Property("RecommendToWarehouseCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("RecommendToWarehouseCode"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - b.Property("AutoAgree") - .HasColumnType("bit"); - - b.Property("AutoCompleteJob") - .HasColumnType("bit"); - - b.Property("AutoHandle") - .HasColumnType("bit"); - - b.Property("AutoSubmit") - .HasColumnType("bit"); - - b.Property("BuildDate") - .HasColumnType("datetime2"); - - 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("DeptCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DeptName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("DirectCreateNote") - .HasColumnType("bit"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("RequestStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_UnplannedReceiptRequest", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("ContainerCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ContainerCode"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationArea"); - - b.Property("LocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationCode"); - - b.Property("LocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationErpCode"); - - b.Property("LocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("LocationGroup"); - - b.Property("Lot") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Lot"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("PackingCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("PackingCode"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("Status") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("WarehouseCode"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "PackingCode", "ItemCode", "Lot", "Status") - .IsUnique() - .HasFilter("[Lot] IS NOT NULL"); - - b.ToTable("Store_UnplannedReceiptRequestDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("JobNumber") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("JobNumber"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("SupplierCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WarehouseTransferNote", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ArriveDate") - .HasColumnType("datetime2"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("ExpireDate") - .HasColumnType("datetime2"); - - b.Property("FromContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("FromLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationArea"); - - b.Property("FromLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationCode"); - - b.Property("FromLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationErpCode"); - - b.Property("FromLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromLocationGroup"); - - b.Property("FromLot") - .HasColumnType("nvarchar(max)"); - - b.Property("FromPackingCode") - .HasColumnType("nvarchar(450)"); - - b.Property("FromStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("FromWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("FromWarehouseCode"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("ProduceDate") - .HasColumnType("datetime2"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Reason") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("StdPackQty") - .HasColumnType("decimal(18,6)"); - - b.Property("SupplierBatch") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("SupplierBatch"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("ToContainerCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToLocationArea") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationArea"); - - b.Property("ToLocationCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationCode"); - - b.Property("ToLocationErpCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationErpCode"); - - b.Property("ToLocationGroup") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToLocationGroup"); - - b.Property("ToLot") - .HasColumnType("nvarchar(max)"); - - b.Property("ToPackingCode") - .HasColumnType("nvarchar(max)"); - - b.Property("ToStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("ToWarehouseCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ToWarehouseCode"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode") - .IsUnique() - .HasFilter("[FromPackingCode] IS NOT NULL"); - - b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("ActiveDate") - .HasColumnType("datetime2"); - - 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("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ExtraProperties") - .HasColumnType("nvarchar(max)") - .HasColumnName("ExtraProperties"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.Property("Type") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Uom") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Uom"); - - b.Property("WoStatus") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkOrderId") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("WorkStation") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Worker") - .HasColumnType("nvarchar(max)"); - - b.HasKey("Id"); - - b.HasIndex("Number") - .IsUnique(); - - b.ToTable("Store_WorkOrder", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.Property("Id") - .HasColumnType("uniqueidentifier"); - - b.Property("CreationTime") - .HasColumnType("datetime2") - .HasColumnName("CreationTime"); - - b.Property("CreatorId") - .HasColumnType("uniqueidentifier") - .HasColumnName("CreatorId"); - - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); - - b.Property("LastModificationTime") - .HasColumnType("datetime2") - .HasColumnName("LastModificationTime"); - - b.Property("LastModifierId") - .HasColumnType("uniqueidentifier") - .HasColumnName("LastModifierId"); - - b.Property("MasterID") - .HasColumnType("uniqueidentifier"); - - b.Property("Number") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("Number"); - - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawLocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("RawQty") - .HasColumnType("decimal(18,6)"); - - b.Property("RawUom") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Remark") - .HasMaxLength(3072) - .HasColumnType("nvarchar(3072)") - .HasColumnName("Remark"); - - b.Property("TenantId") - .HasColumnType("uniqueidentifier") - .HasColumnName("TenantId"); - - b.HasKey("Id"); - - b.HasIndex("MasterID"); - - b.HasIndex("Number", "ItemCode") - .IsUnique(); - - b.ToTable("Store_WorkOrderDetail", (string)null); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CheckJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CountPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJobSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectJob", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNoteSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectNote", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequestSummaryDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InspectRequest", null) - .WithMany("SummaryDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IsolationNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.IssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlanDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleMaterialDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("MaterialDetails") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SaleOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsnDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.TransferRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJobDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequestDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNoteDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => - { - b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) - .WithMany("Details") - .HasForeignKey("MasterID") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.BackFlushNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CheckJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ContainerBindNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountAdjustRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CountPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.CustomerReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.DeliverRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectJob", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectNote", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InspectRequest", b => - { - b.Navigation("Details"); - - b.Navigation("SummaryDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryInitialNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.InventoryTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IsolationNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.IssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ItemTransformRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisDeliverNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.JisProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.MaterialRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.NoOkConvertOkNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.OfflineSettlementNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PreparationPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionPlan", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductionReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductL7PartsNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductReceiveJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleNote", b => - { - b.Navigation("Details"); - - b.Navigation("MaterialDetails"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ProductRecycleRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PurchaseReturnRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.PutawayRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ReceiptAbnormalNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.RecycledMaterialReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SaleOrder", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.ScrapRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.TransferRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedIssueRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptJob", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.UnplannedReceiptRequest", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WarehouseTransferNote", b => - { - b.Navigation("Details"); - }); - - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => - { - b.Navigation("Details"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230404020712_Added_Store_Add_SupplierAdress_SupplierName.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230404020712_Added_Store_Add_SupplierAdress_SupplierName.cs deleted file mode 100644 index eadaed488..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230404020712_Added_Store_Add_SupplierAdress_SupplierName.cs +++ /dev/null @@ -1,95 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - public partial class Added_Store_Add_SupplierAddress_SupplierName : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "SupplierAddress", - table: "Store_SupplierAsn", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierName", - table: "Store_SupplierAsn", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierAddress", - table: "Store_PurchaseReceiptRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierAddress", - table: "Store_PurchaseReceiptNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierName", - table: "Store_PurchaseReceiptNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierAddress", - table: "Store_PurchaseOrder", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierName", - table: "Store_PurchaseOrder", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "SupplierAddress", - table: "Job_PurchaseReceiptJob", - type: "nvarchar(max)", - nullable: true); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "SupplierAddress", - table: "Store_SupplierAsn"); - - migrationBuilder.DropColumn( - name: "SupplierName", - table: "Store_SupplierAsn"); - - migrationBuilder.DropColumn( - name: "SupplierAddress", - table: "Store_PurchaseReceiptRequest"); - - migrationBuilder.DropColumn( - name: "SupplierAddress", - table: "Store_PurchaseReceiptNote"); - - migrationBuilder.DropColumn( - name: "SupplierName", - table: "Store_PurchaseReceiptNote"); - - migrationBuilder.DropColumn( - name: "SupplierAddress", - table: "Store_PurchaseOrder"); - - migrationBuilder.DropColumn( - name: "SupplierName", - table: "Store_PurchaseOrder"); - - migrationBuilder.DropColumn( - name: "SupplierAddress", - table: "Job_PurchaseReceiptJob"); - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230412072454_Store_AddColumn.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230412072454_Store_AddColumn.cs deleted file mode 100644 index 93eaf0024..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230412072454_Store_AddColumn.cs +++ /dev/null @@ -1,68 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - public partial class Store_AddColumn : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_TransferNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "WarehouseCode", - table: "Store_InspectRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CountPrint", - table: "Store_DeliverNote", - type: "int", - nullable: false, - defaultValue: 0); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_PurchaseReceiptNote"); - - migrationBuilder.DropColumn( - name: "WarehouseCode", - table: "Store_InspectRequest"); - - migrationBuilder.DropColumn( - name: "CountPrint", - table: "Store_DeliverNote"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_TransferNote", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240222014023_Mig_Store_Init.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240222014023_Mig_Store_Init.cs deleted file mode 100644 index b22f7549e..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240222014023_Mig_Store_Init.cs +++ /dev/null @@ -1,644 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - public partial class Mig_Store_Init : Migration - { - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddColumn( - name: "CaseCode", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Explain", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OnceBusiCode", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ProjCapacityCode", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ReasonCode", - table: "Store_UnplannedReceiptRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OANumber", - table: "Store_UnplannedReceiptRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UnplannedReceiptType", - table: "Store_UnplannedReceiptRequest", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "CaseCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Explain", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OnceBusiCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ProjCapacityCode", - table: "Store_UnplannedReceiptNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OANumber", - table: "Store_UnplannedReceiptNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UnplannedReceiptType", - table: "Store_UnplannedReceiptNote", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "CaseCode", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Explain", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OnceBusiCode", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ProjCapacityCode", - table: "Store_UnplannedIssueRequestDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OANumber", - table: "Store_UnplannedIssueRequest", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UnplannedIssueType", - table: "Store_UnplannedIssueRequest", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "CaseCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Explain", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OnceBusiCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ProjCapacityCode", - table: "Store_UnplannedIssueNoteDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OANumber", - table: "Store_UnplannedIssueNote", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UnplannedIssueType", - table: "Store_UnplannedIssueNote", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: false, - defaultValue: "", - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64, - oldNullable: true); - - migrationBuilder.AddColumn( - name: "InspectDate", - table: "Store_InspectNoteDetail", - type: "datetime2", - nullable: false, - defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); - - migrationBuilder.AddColumn( - name: "TyrpNumber", - table: "Store_ExchangeData", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "CaseCode", - table: "Job_UnplannedReceiptJobDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Explain", - table: "Job_UnplannedReceiptJobDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OnceBusiCode", - table: "Job_UnplannedReceiptJobDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ProjCapacityCode", - table: "Job_UnplannedReceiptJobDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OANumber", - table: "Job_UnplannedReceiptJob", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UnplannedReceiptType", - table: "Job_UnplannedReceiptJob", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.AddColumn( - name: "CaseCode", - table: "Job_UnplannedIssueJobDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "Explain", - table: "Job_UnplannedIssueJobDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OnceBusiCode", - table: "Job_UnplannedIssueJobDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "ProjCapacityCode", - table: "Job_UnplannedIssueJobDetail", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "OANumber", - table: "Job_UnplannedIssueJob", - type: "nvarchar(max)", - nullable: true); - - migrationBuilder.AddColumn( - name: "UnplannedIssueType", - table: "Job_UnplannedIssueJob", - type: "int", - nullable: false, - defaultValue: 0); - - migrationBuilder.CreateTable( - name: "Store_WipWarehouseAdjustNote", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - RequestNumber = table.Column(type: "nvarchar(max)", nullable: true), - JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - Confirmed = table.Column(type: "bit", nullable: false), - ConfirmTime = table.Column(type: "datetime2", nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_WipWarehouseAdjustNote", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_WipWarehouseAdjustRequest", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), - ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), - Worker = table.Column(type: "nvarchar(max)", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ActiveDate = table.Column(type: "datetime2", nullable: false), - AutoSubmit = table.Column(type: "bit", nullable: false), - AutoAgree = table.Column(type: "bit", nullable: false), - AutoHandle = table.Column(type: "bit", nullable: false), - AutoCompleteJob = table.Column(type: "bit", nullable: false), - DirectCreateNote = table.Column(type: "bit", nullable: false), - RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_WipWarehouseAdjustRequest", x => x.Id); - }); - - migrationBuilder.CreateTable( - name: "Store_WipWarehouseAdjustNoteDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Reason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ReasonCode = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ArriveDate = table.Column(type: "datetime2", nullable: false), - ProduceDate = table.Column(type: "datetime2", nullable: false), - ExpireDate = table.Column(type: "datetime2", nullable: false), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_WipWarehouseAdjustNoteDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_WipWarehouseAdjustNoteDetail_Store_WipWarehouseAdjustNote_MasterID", - column: x => x.MasterID, - principalTable: "Store_WipWarehouseAdjustNote", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateTable( - name: "Store_WipWarehouseAdjustRequestDetail", - columns: table => new - { - Id = table.Column(type: "uniqueidentifier", nullable: false), - Reason = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - ReasonCode = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), - CreationTime = table.Column(type: "datetime2", nullable: false), - CreatorId = table.Column(type: "uniqueidentifier", nullable: true), - LastModificationTime = table.Column(type: "datetime2", nullable: true), - LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), - MasterID = table.Column(type: "uniqueidentifier", nullable: false), - TenantId = table.Column(type: "uniqueidentifier", nullable: true), - Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), - ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), - StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), - FromPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), - FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), - FromLot = table.Column(type: "nvarchar(max)", nullable: true), - ToLot = table.Column(type: "nvarchar(max)", nullable: true), - SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ArriveDate = table.Column(type: "datetime2", nullable: false), - ProduceDate = table.Column(type: "datetime2", nullable: false), - ExpireDate = table.Column(type: "datetime2", nullable: false), - FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), - ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), - ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_Store_WipWarehouseAdjustRequestDetail", x => x.Id); - table.ForeignKey( - name: "FK_Store_WipWarehouseAdjustRequestDetail_Store_WipWarehouseAdjustRequest_MasterID", - column: x => x.MasterID, - principalTable: "Store_WipWarehouseAdjustRequest", - principalColumn: "Id", - onDelete: ReferentialAction.Cascade); - }); - - migrationBuilder.CreateIndex( - name: "IX_Store_WipWarehouseAdjustNote_Number", - table: "Store_WipWarehouseAdjustNote", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_WipWarehouseAdjustNoteDetail_MasterID", - table: "Store_WipWarehouseAdjustNoteDetail", - column: "MasterID"); - - migrationBuilder.CreateIndex( - name: "IX_Store_WipWarehouseAdjustNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode_FromStatus_ToStatus", - table: "Store_WipWarehouseAdjustNoteDetail", - columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus" }, - unique: true, - filter: "[FromPackingCode] IS NOT NULL"); - - migrationBuilder.CreateIndex( - name: "IX_Store_WipWarehouseAdjustRequest_Number", - table: "Store_WipWarehouseAdjustRequest", - column: "Number", - unique: true); - - migrationBuilder.CreateIndex( - name: "IX_Store_WipWarehouseAdjustRequestDetail_MasterID", - table: "Store_WipWarehouseAdjustRequestDetail", - column: "MasterID"); - } - - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "Store_WipWarehouseAdjustNoteDetail"); - - migrationBuilder.DropTable( - name: "Store_WipWarehouseAdjustRequestDetail"); - - migrationBuilder.DropTable( - name: "Store_WipWarehouseAdjustNote"); - - migrationBuilder.DropTable( - name: "Store_WipWarehouseAdjustRequest"); - - migrationBuilder.DropColumn( - name: "CaseCode", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "Explain", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "OnceBusiCode", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "ProjCapacityCode", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "ReasonCode", - table: "Store_UnplannedReceiptRequestDetail"); - - migrationBuilder.DropColumn( - name: "OANumber", - table: "Store_UnplannedReceiptRequest"); - - migrationBuilder.DropColumn( - name: "UnplannedReceiptType", - table: "Store_UnplannedReceiptRequest"); - - migrationBuilder.DropColumn( - name: "CaseCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "Explain", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "OnceBusiCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "ProjCapacityCode", - table: "Store_UnplannedReceiptNoteDetail"); - - migrationBuilder.DropColumn( - name: "OANumber", - table: "Store_UnplannedReceiptNote"); - - migrationBuilder.DropColumn( - name: "UnplannedReceiptType", - table: "Store_UnplannedReceiptNote"); - - migrationBuilder.DropColumn( - name: "CaseCode", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "Explain", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "OnceBusiCode", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "ProjCapacityCode", - table: "Store_UnplannedIssueRequestDetail"); - - migrationBuilder.DropColumn( - name: "OANumber", - table: "Store_UnplannedIssueRequest"); - - migrationBuilder.DropColumn( - name: "UnplannedIssueType", - table: "Store_UnplannedIssueRequest"); - - migrationBuilder.DropColumn( - name: "CaseCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "Explain", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "OnceBusiCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "ProjCapacityCode", - table: "Store_UnplannedIssueNoteDetail"); - - migrationBuilder.DropColumn( - name: "OANumber", - table: "Store_UnplannedIssueNote"); - - migrationBuilder.DropColumn( - name: "UnplannedIssueType", - table: "Store_UnplannedIssueNote"); - - migrationBuilder.DropColumn( - name: "InspectDate", - table: "Store_InspectNoteDetail"); - - migrationBuilder.DropColumn( - name: "TyrpNumber", - table: "Store_ExchangeData"); - - migrationBuilder.DropColumn( - name: "CaseCode", - table: "Job_UnplannedReceiptJobDetail"); - - migrationBuilder.DropColumn( - name: "Explain", - table: "Job_UnplannedReceiptJobDetail"); - - migrationBuilder.DropColumn( - name: "OnceBusiCode", - table: "Job_UnplannedReceiptJobDetail"); - - migrationBuilder.DropColumn( - name: "ProjCapacityCode", - table: "Job_UnplannedReceiptJobDetail"); - - migrationBuilder.DropColumn( - name: "OANumber", - table: "Job_UnplannedReceiptJob"); - - migrationBuilder.DropColumn( - name: "UnplannedReceiptType", - table: "Job_UnplannedReceiptJob"); - - migrationBuilder.DropColumn( - name: "CaseCode", - table: "Job_UnplannedIssueJobDetail"); - - migrationBuilder.DropColumn( - name: "Explain", - table: "Job_UnplannedIssueJobDetail"); - - migrationBuilder.DropColumn( - name: "OnceBusiCode", - table: "Job_UnplannedIssueJobDetail"); - - migrationBuilder.DropColumn( - name: "ProjCapacityCode", - table: "Job_UnplannedIssueJobDetail"); - - migrationBuilder.DropColumn( - name: "OANumber", - table: "Job_UnplannedIssueJob"); - - migrationBuilder.DropColumn( - name: "UnplannedIssueType", - table: "Job_UnplannedIssueJob"); - - migrationBuilder.AlterColumn( - name: "Type", - table: "Store_ProductReceiptRequest", - type: "nvarchar(64)", - maxLength: 64, - nullable: true, - oldClrType: typeof(string), - oldType: "nvarchar(64)", - oldMaxLength: 64); - } - } -} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240222014023_Mig_Store_Init.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223055707_temp.Designer.cs similarity index 99% rename from be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240222014023_Mig_Store_Init.Designer.cs rename to be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223055707_temp.Designer.cs index 1554bcd27..7c029a486 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240222014023_Mig_Store_Init.Designer.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223055707_temp.Designer.cs @@ -13,8 +13,8 @@ using Win_in.Sfs.Wms.Store.EntityFrameworkCore; namespace Win_in.Sfs.Wms.Store.Migrations { [DbContext(typeof(StoreDbContext))] - [Migration("20240222014023_Mig_Store_Init")] - partial class Mig_Store_Init + [Migration("20240223055707_temp")] + partial class temp { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -3925,6 +3925,7 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnName("TenantId"); b.Property("TyrpNumber") + .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("WriteTime") @@ -16866,6 +16867,152 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.ToTable("Store_ScrapRequestDetail", (string)null); }); + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SplitPackingRec", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("ArrivalNoticNumber") + .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("FromLot") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromQty") + .HasPrecision(18, 6) + .HasColumnType("decimal(18,6)"); + + b.Property("FromStdPackQty") + .HasColumnType("decimal(18,6)"); + + b.Property("FromTopPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromUom") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ItemCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ItemDesc1") + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); + + b.Property("ItemDesc2") + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); + + b.Property("ItemName") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("LabelType") + .HasColumnType("int"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("OprType") + .HasColumnType("int"); + + b.Property("PurchaseInfo_AsnNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("PurchaseInfo_PoNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("PutOnShelfNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ReceiptRecNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskOrderNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("ToLot") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToQty") + .HasPrecision(18, 6) + .HasColumnType("decimal(18,6)"); + + b.Property("ToStdPackQty") + .HasColumnType("decimal(18,6)"); + + b.Property("ToTopPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToUom") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.HasKey("Id"); + + b.HasIndex("ToPackingCode"); + + b.HasIndex("FromPackingCode", "ToPackingCode"); + + b.ToTable("Store_SplitPackingRec", (string)null); + }); + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => { b.Property("Id") diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223055707_temp.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223055707_temp.cs new file mode 100644 index 000000000..058326ded --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223055707_temp.cs @@ -0,0 +1,8075 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Win_in.Sfs.Wms.Store.Migrations +{ + public partial class temp : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "Job_CheckJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeliverNoteNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_CheckJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_CountJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CountPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CountStage = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CountMethod = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(max)", nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_CountJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_DeliverJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeliverRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CustomerAddressCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeliverTime = table.Column(type: "datetime2", nullable: false), + DeliverPlanNumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_DeliverJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_InspectJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + InspectNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(max)", nullable: true), + NextAction = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_InspectJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_IssueJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RequestType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + MaterialRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + UseOnTheWayLocation = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_IssueJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_JisDeliverJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Customer = table.Column(type: "nvarchar(max)", nullable: true), + CustomerAddressCode = table.Column(type: "nvarchar(max)", nullable: true), + CustomerLocationCode = table.Column(type: "nvarchar(max)", nullable: true), + CustomerWarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), + ProjectCode = table.Column(type: "nvarchar(max)", nullable: true), + Position = table.Column(type: "nvarchar(max)", nullable: true), + PlanTime = table.Column(type: "datetime2", nullable: false), + ContainerQty = table.Column(type: "decimal(18,6)", nullable: false), + ItemQty = table.Column(type: "decimal(18,6)", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_JisDeliverJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_ProductionReturnJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductionReturnRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_ProductionReturnJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_ProductReceiveJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductionPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_ProductReceiveJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_PurchaseReceiptJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierAddress = table.Column(type: "nvarchar(max)", nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TimeWindow = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PlanArriveDate = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_PurchaseReceiptJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_PurchaseReturnJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PurchaseReturnRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReturnReason = table.Column(type: "nvarchar(max)", nullable: true), + ReturnTime = table.Column(type: "datetime2", nullable: false), + ReturnType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_PurchaseReturnJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_PutawayJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PutawayMode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + InspectNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_PutawayJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_UnplannedIssueJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + UnplannedIssueRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BuildDate = table.Column(type: "datetime2", nullable: false), + UnplannedIssueType = table.Column(type: "int", nullable: false), + OANumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_UnplannedIssueJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_UnplannedReceiptJob", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + UnplannedReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BuildDate = table.Column(type: "datetime2", nullable: false), + UnplannedReceiptType = table.Column(type: "int", nullable: false), + OANumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UpStreamJobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobDescription = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + JobType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Priority = table.Column(type: "int", nullable: false, defaultValue: 0), + PriorityIncrement = table.Column(type: "int", nullable: false, defaultValue: 0), + WorkGroupCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsAutoComplete = table.Column(type: "bit", nullable: false, defaultValue: false), + AcceptUserId = table.Column(type: "uniqueidentifier", nullable: true), + AcceptUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AcceptTime = table.Column(type: "datetime2", nullable: true), + CompleteUserId = table.Column(type: "uniqueidentifier", nullable: true), + CompleteUserName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_UnplannedReceiptJob", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_BackFlushNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CompleteTime = table.Column(type: "datetime2", nullable: false), + Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductionPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ProductReceiptNumber = table.Column(type: "nvarchar(max)", nullable: true), + ProductRecycleNumber = table.Column(type: "nvarchar(max)", nullable: true), + JobNumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_BackFlushNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ContainerBindNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + BindType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + BindTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ContainerBindNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_CountAdjustNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CountNoteNumber = table.Column(type: "nvarchar(max)", nullable: true), + CountPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CountAdjustRequestNumber = table.Column(type: "nvarchar(max)", nullable: true), + JobNumber = table.Column(type: "nvarchar(max)", nullable: true), + IsAdjusted = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CountAdjustNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_CountAdjustRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CountNoteNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CountPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CountAdjustRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_CountNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CountPlanNumber = table.Column(type: "nvarchar(max)", nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Stage = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BeginTime = table.Column(type: "datetime2", nullable: false), + EndTime = table.Column(type: "datetime2", nullable: false), + Adjusted = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CountNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_CountPlan", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Stage = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RequestType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CountMethod = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Description = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BeginTime = table.Column(type: "datetime2", nullable: true), + EndTime = table.Column(type: "datetime2", nullable: true), + PlanTime = table.Column(type: "datetime2", nullable: false), + JsonItemCodes = table.Column(type: "nvarchar(max)", nullable: true), + JsonLocationCodes = table.Column(type: "nvarchar(max)", nullable: true), + JsonInventoryStatus = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CountPlan", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_CustomerAsn", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "int", nullable: false), + ContactName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ContactPhone = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ContactEmail = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DockCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BeginTime = table.Column(type: "datetime2", nullable: true), + EndTime = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CustomerAsn", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_CustomerReturnNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReturnTime = table.Column(type: "datetime2", nullable: false), + Customer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CustomerReturnNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_DeliverNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CustomerAddressCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeliverPlanNumber = table.Column(type: "nvarchar(max)", nullable: true), + DeliverTime = table.Column(type: "datetime2", nullable: false), + DeliverRequestNumber = table.Column(type: "nvarchar(max)", nullable: true), + DeliverRequestType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CountPrint = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_DeliverNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_DeliverPlan", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PlanDate = table.Column(type: "datetime2", nullable: false), + PlanTime = table.Column(type: "datetime2", nullable: false), + CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CustomerAddressCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Project = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_DeliverPlan", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_DeliverRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeliverTime = table.Column(type: "datetime2", nullable: false), + DeliverPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CustomerAddressCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeliverRequestType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_DeliverRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ExchangeData", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Number = table.Column(type: "bigint", nullable: false), + DataType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + DataAction = table.Column(type: "int", nullable: false), + EffectiveDate = table.Column(type: "datetime2", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + DataIdentityCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + DataContent = table.Column(type: "nvarchar(max)", nullable: true), + DestinationSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ReadTime = table.Column(type: "datetime2", nullable: true), + Reader = table.Column(type: "nvarchar(max)", nullable: true), + SourceSystem = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WriteTime = table.Column(type: "datetime2", nullable: false), + Writer = table.Column(type: "nvarchar(max)", nullable: true), + ErrorCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ErrorMessage = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + RetryTimes = table.Column(type: "int", nullable: false), + TyrpNumber = table.Column(type: "nvarchar(max)", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ExchangeData", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_InspectAbnormalNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + InspectNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InspectAbnormalNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_InspectNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + InspectNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + NextAction = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InspectNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_InspectRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InspectRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_InventoryInitialNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InventoryInitialNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_InventoryTransferNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + TransferType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InventoryTransferNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_IsolationNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_IsolationNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_IssueNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RequestType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + UseOnTheWayLocation = table.Column(type: "bit", nullable: false), + ConfirmTime = table.Column(type: "datetime2", nullable: true), + Confirmed = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_IssueNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ItemTransformNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobNumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ItemTransformNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ItemTransformRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ItemTransformRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_JisDeliverNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Customer = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CustomerAddressCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ProjectCode = table.Column(type: "nvarchar(max)", nullable: true), + DeliverTime = table.Column(type: "datetime2", nullable: false), + ContainerQty = table.Column(type: "decimal(18,6)", nullable: false), + ItemQty = table.Column(type: "decimal(18,6)", nullable: false), + TotalPackCapacity = table.Column(type: "nvarchar(max)", nullable: true), + ArrivalTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_JisDeliverNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_JisProductReceiptNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReceiptType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SourceNumber = table.Column(type: "nvarchar(max)", nullable: true), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductionPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(max)", nullable: true), + RawLocationCode = table.Column(type: "nvarchar(max)", nullable: true), + ProdLine = table.Column(type: "nvarchar(max)", nullable: true), + WorkShop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: false), + ContainerQty = table.Column(type: "decimal(18,6)", nullable: false), + ItemQty = table.Column(type: "decimal(18,6)", nullable: false), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_JisProductReceiptNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_MaterialRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PreparationPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + UseOnTheWayLocation = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_MaterialRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_NoOkConvertOkNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_NoOkConvertOkNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_OfflineSettlementNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(max)", nullable: true), + ProductReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_OfflineSettlementNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_PreparationPlan", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductionPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Team = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PlanDate = table.Column(type: "datetime2", nullable: false), + PlanTime = table.Column(type: "datetime2", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PreparationPlan", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductionPlan", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Team = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + PlanDate = table.Column(type: "datetime2", nullable: false), + PlanTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductionPlan", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductionReturnNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductionReturnRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReturnTime = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductionReturnNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductionReturnRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductionReturnRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductL7PartsNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Year = table.Column(type: "nvarchar(max)", nullable: true), + ProductNo = table.Column(type: "nvarchar(max)", nullable: true), + Program = table.Column(type: "nvarchar(max)", nullable: true), + Position = table.Column(type: "nvarchar(max)", nullable: true), + FATA = table.Column(type: "nvarchar(max)", nullable: true), + Configuration = table.Column(type: "nvarchar(max)", nullable: true), + ContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + State = table.Column(type: "int", nullable: false), + CreateDate = table.Column(type: "datetime2", nullable: false), + Status = table.Column(type: "int", nullable: false), + ReceiptNumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductL7PartsNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductReceiptNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReceiptType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SourceNumber = table.Column(type: "nvarchar(max)", nullable: true), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductionPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + WorkShop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CompleteTime = table.Column(type: "datetime2", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductReceiptNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductReceiptRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProductionPlanNumber = table.Column(type: "nvarchar(max)", nullable: true), + Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Team = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PlanDate = table.Column(type: "datetime2", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductReceiptRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductRecycleNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RequestNumber = table.Column(type: "nvarchar(max)", nullable: true), + RecycleTime = table.Column(type: "datetime2", nullable: false), + Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductRecycleNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductRecycleRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Workshop = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Shift = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductRecycleRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_PurchaseOrder", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierName = table.Column(type: "nvarchar(max)", nullable: true), + SupplierAddress = table.Column(type: "nvarchar(max)", nullable: true), + PoType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + OrderStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + IsConsignment = table.Column(type: "bit", nullable: false, defaultValue: false), + OrderDate = table.Column(type: "datetime2", nullable: false), + DueDate = table.Column(type: "datetime2", nullable: false), + Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + TaxRate = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + ContactName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ContactPhone = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ContactEmail = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PurchaseOrder", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_PurchaseReceiptNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierName = table.Column(type: "nvarchar(max)", nullable: true), + SupplierAddress = table.Column(type: "nvarchar(max)", nullable: true), + ReceiveTime = table.Column(type: "datetime2", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + WarehouseCode = table.Column(type: "nvarchar(max)", nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PurchaseReceiptNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_PurchaseReceiptRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierAddress = table.Column(type: "nvarchar(max)", nullable: true), + TruckNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DockCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TimeWindow = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + PlanArriveDate = table.Column(type: "datetime2", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PurchaseReceiptRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_PurchaseReturnNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PurchaseReturnRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReturnReason = table.Column(type: "nvarchar(max)", nullable: true), + ReturnTime = table.Column(type: "datetime2", nullable: false), + ReturnType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PurchaseReturnNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_PurchaseReturnRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReturnTime = table.Column(type: "datetime2", nullable: false), + ReturnType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PurchaseReturnRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_PutawayNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + InspectNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PutawayNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_PutawayRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PutawayMode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierCode = table.Column(type: "nvarchar(max)", nullable: true), + InspectNumber = table.Column(type: "nvarchar(max)", nullable: true), + ReceiptNumber = table.Column(type: "nvarchar(max)", nullable: true), + PurchaseReceiptRequestNumber = table.Column(type: "nvarchar(max)", nullable: true), + AsnNumber = table.Column(type: "nvarchar(max)", nullable: true), + RpNumber = table.Column(type: "nvarchar(max)", nullable: true), + PoNumber = table.Column(type: "nvarchar(max)", nullable: true), + ProductReceiptNumber = table.Column(type: "nvarchar(max)", nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RequestNumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PutawayRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ReceiptAbnormalNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ReceiptAbnormalNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_RecycledMaterialReceiptNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_RecycledMaterialReceiptNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_SaleOrder", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CustomerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SoType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SoStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + OrderDate = table.Column(type: "datetime2", nullable: false), + DueDate = table.Column(type: "datetime2", nullable: false), + Version = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + TaxRate = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + ContactName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ContactPhone = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ContactEmail = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_SaleOrder", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ScrapNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ScrapRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ScrapNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_ScrapRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ScrapRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_SplitPackingRec", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + OprType = table.Column(type: "int", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromTopPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + ToPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToTopPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + ToUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(1024)", maxLength: 1024, nullable: true), + FromLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PurchaseInfo_PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PurchaseInfo_AsnNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArrivalNoticNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + TaskOrderNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiptRecNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PutOnShelfNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LabelType = table.Column(type: "int", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(max)", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_SplitPackingRec", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_SupplierAsn", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RpNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierName = table.Column(type: "nvarchar(max)", nullable: true), + SupplierAddress = table.Column(type: "nvarchar(max)", nullable: true), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContactName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ContactPhone = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ContactEmail = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + TruckNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DockCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ShipDate = table.Column(type: "datetime2", nullable: false), + DueDate = table.Column(type: "datetime2", nullable: false), + TimeWindow = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PlanArriveDate = table.Column(type: "datetime2", nullable: false), + Ctype = table.Column(type: "nvarchar(max)", nullable: true), + PlanUserCode = table.Column(type: "nvarchar(max)", nullable: true), + CreateType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_SupplierAsn", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_TransferNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RequestNumber = table.Column(type: "nvarchar(max)", nullable: true), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + UseOnTheWayLocation = table.Column(type: "bit", nullable: false), + ConfirmTime = table.Column(type: "datetime2", nullable: true), + Confirmed = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_TransferNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_TransferRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + UseOnTheWayLocation = table.Column(type: "bit", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_TransferRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_UnplannedIssueNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BuildDate = table.Column(type: "datetime2", nullable: false), + UnplannedIssueRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + UnplannedIssueType = table.Column(type: "int", nullable: false), + OANumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_UnplannedIssueNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_UnplannedIssueRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BuildDate = table.Column(type: "datetime2", nullable: false), + UnplannedIssueType = table.Column(type: "int", nullable: false), + OANumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_UnplannedIssueRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_UnplannedReceiptNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BuildDate = table.Column(type: "datetime2", nullable: false), + UnplannedReceiptRequestNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + UnplannedReceiptType = table.Column(type: "int", nullable: false), + OANumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_UnplannedReceiptNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_UnplannedReceiptRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeptCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DeptName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BuildDate = table.Column(type: "datetime2", nullable: false), + UnplannedReceiptType = table.Column(type: "int", nullable: false), + OANumber = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_UnplannedReceiptRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_WarehouseTransferNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_WarehouseTransferNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_WipWarehouseAdjustNote", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RequestNumber = table.Column(type: "nvarchar(max)", nullable: true), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Confirmed = table.Column(type: "bit", nullable: false), + ConfirmTime = table.Column(type: "datetime2", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_WipWarehouseAdjustNote", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_WipWarehouseAdjustRequest", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false), + AutoSubmit = table.Column(type: "bit", nullable: false), + AutoAgree = table.Column(type: "bit", nullable: false), + AutoHandle = table.Column(type: "bit", nullable: false), + AutoCompleteJob = table.Column(type: "bit", nullable: false), + DirectCreateNote = table.Column(type: "bit", nullable: false), + RequestStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_WipWarehouseAdjustRequest", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Store_WorkOrder", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + WorkOrderId = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + EffectiveDate = table.Column(type: "datetime2", nullable: false), + WorkStation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + WoStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Op = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Type = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(40)", maxLength: 40, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + Worker = table.Column(type: "nvarchar(max)", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ActiveDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_WorkOrder", x => x.Id); + }); + + migrationBuilder.CreateTable( + name: "Job_CheckJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Order = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CustomerItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_CheckJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_CheckJobDetail_Job_CheckJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_CheckJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_CountJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CountLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + InventoryQty = table.Column(type: "decimal(18,6)", nullable: false), + Uom = table.Column(type: "nvarchar(max)", nullable: true), + InventoryLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CountQty = table.Column(type: "decimal(18,6)", nullable: false), + CountTime = table.Column(type: "datetime2", nullable: true), + CountOperator = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CountDescription = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_CountJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_CountJobDetail_Job_CountJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_CountJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_DeliverJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationArea = table.Column(type: "nvarchar(max)", nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(max)", nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + OnTheWayLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(max)", nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_DeliverJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_DeliverJobDetail_Job_DeliverJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_DeliverJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_InspectJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + InspectType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SamplePercent = table.Column(type: "decimal(18,6)", nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiveQty = table.Column(type: "decimal(18,6)", nullable: false), + InspectQty = table.Column(type: "decimal(18,6)", nullable: false), + GoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + FailedReason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FailedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + CrackQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + InspectUser = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + NotPassedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + AbcClass = table.Column(type: "nvarchar(max)", nullable: true), + DetailInspectStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Appearance = table.Column(type: "nvarchar(max)", nullable: true), + Volume = table.Column(type: "nvarchar(max)", nullable: true), + Weight = table.Column(type: "nvarchar(max)", nullable: true), + OtherPropertyJson = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_InspectJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_InspectJobDetail_Job_InspectJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_InspectJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_InspectJobSummaryDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + InspectType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SamplePercent = table.Column(type: "decimal(18,6)", nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiveQty = table.Column(type: "decimal(18,6)", nullable: false), + InspectQty = table.Column(type: "decimal(18,6)", nullable: false), + GoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + FailedReason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FailedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + CrackQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + InspectUser = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + NotPassedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + SummaryInspectStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + AbcClass = table.Column(type: "nvarchar(max)", nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + InspectReport = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_InspectJobSummaryDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_InspectJobSummaryDetail_Job_InspectJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_InspectJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_IssueJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RequestLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + OnTheWayLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + WorkStation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExpiredTime = table.Column(type: "datetime2", nullable: false), + Operation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DistributionType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + TruncType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RoundedQty = table.Column(type: "decimal(18,6)", nullable: false), + PlannedSplitRule = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + PlanBeginTime = table.Column(type: "datetime2", nullable: false), + DeliveryQty = table.Column(type: "decimal(18,6)", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(max)", nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_IssueJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_IssueJobDetail_Job_IssueJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_IssueJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_JisDeliverJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ContainerName = table.Column(type: "nvarchar(max)", nullable: true), + ContainerDesc = table.Column(type: "nvarchar(max)", nullable: true), + ItemQty = table.Column(type: "decimal(18,6)", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Status = table.Column(type: "nvarchar(max)", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(max)", nullable: true), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_JisDeliverJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_JisDeliverJobDetail_Job_JisDeliverJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_JisDeliverJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_ProductionReturnJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(max)", nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_ProductionReturnJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_ProductionReturnJobDetail_Job_ProductionReturnJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_ProductionReturnJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_ProductReceiveJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RawLocationCode = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(max)", nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_ProductReceiveJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_ProductReceiveJobDetail_Job_ProductReceiveJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_ProductReceiveJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_PurchaseReceiptJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + PurchaseReceiptInspectStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + InspectPhotoJson = table.Column(type: "nvarchar(max)", nullable: true), + FailedReason = table.Column(type: "nvarchar(max)", nullable: true), + MassDefect = table.Column(type: "nvarchar(max)", nullable: true), + SupplierPackUom = table.Column(type: "nvarchar(max)", nullable: true), + SupplierPackQty = table.Column(type: "decimal(18,6)", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(max)", nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_PurchaseReceiptJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_PurchaseReceiptJobDetail_Job_PurchaseReceiptJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_PurchaseReceiptJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_PurchaseReturnJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Reason = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(max)", nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_PurchaseReturnJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_PurchaseReturnJobDetail_Job_PurchaseReturnJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_PurchaseReturnJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_PutawayJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_PutawayJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_PutawayJobDetail_Job_PutawayJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_PutawayJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_UnplannedIssueJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), + CaseCode = table.Column(type: "nvarchar(max)", nullable: true), + ProjCapacityCode = table.Column(type: "nvarchar(max)", nullable: true), + OnceBusiCode = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + Explain = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(max)", nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_UnplannedIssueJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_UnplannedIssueJobDetail_Job_UnplannedIssueJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_UnplannedIssueJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Job_UnplannedReceiptJobDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), + CaseCode = table.Column(type: "nvarchar(max)", nullable: true), + ProjCapacityCode = table.Column(type: "nvarchar(max)", nullable: true), + OnceBusiCode = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + Explain = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(max)", nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Job_UnplannedReceiptJobDetail", x => x.Id); + table.ForeignKey( + name: "FK_Job_UnplannedReceiptJobDetail_Job_UnplannedReceiptJob_MasterID", + column: x => x.MasterID, + principalTable: "Job_UnplannedReceiptJob", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_BackFlushNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + IsOffLine = table.Column(type: "bit", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_BackFlushNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_BackFlushNoteDetail_Store_BackFlushNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_BackFlushNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ContainerBindNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ContainerBindNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ContainerBindNoteDetail_Store_ContainerBindNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_ContainerBindNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_CountAdjustNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CountLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + InventoryQty = table.Column(type: "decimal(18,6)", nullable: false), + TransInOut = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ReasonCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CountQty = table.Column(type: "decimal(18,6)", nullable: false), + AdjustQty = table.Column(type: "decimal(18,6)", nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CountAdjustNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_CountAdjustNoteDetail_Store_CountAdjustNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_CountAdjustNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_CountAdjustRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), + InventoryQty = table.Column(type: "decimal(18,6)", nullable: false), + CountQty = table.Column(type: "decimal(18,6)", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CountAdjustRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_CountAdjustRequestDetail_Store_CountAdjustRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_CountAdjustRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_CountNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CountPlanNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CountLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(max)", nullable: true), + InventoryQty = table.Column(type: "decimal(18,6)", nullable: false), + FirstCountQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + FirstCountTime = table.Column(type: "datetime2", nullable: true), + FirstCountOperator = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FirstCountDescription = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RepeatCountQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + RepeatCountTime = table.Column(type: "datetime2", nullable: true), + RepeatCountOperator = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RepeatCountDescription = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AuditCountQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + AuditCountTime = table.Column(type: "datetime2", nullable: true), + AuditCountOperator = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AuditCountDescription = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FinalCountQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + DetailStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Stage = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Adjusted = table.Column(type: "bit", nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CountNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_CountNoteDetail_Store_CountNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_CountNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_CountPlanDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CountLabel = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + InventoryQty = table.Column(type: "decimal(18,6)", nullable: false), + FirstCountQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + FirstCountTime = table.Column(type: "datetime2", nullable: true), + FirstCountOperator = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FirstCountDescription = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RepeatCountQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + RepeatCountTime = table.Column(type: "datetime2", nullable: true), + RepeatCountOperator = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RepeatCountDescription = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AuditCountQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + AuditCountTime = table.Column(type: "datetime2", nullable: true), + AuditCountOperator = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + AuditCountDescription = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + DetailStatus = table.Column(type: "int", nullable: false), + Stage = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FinalCountQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CountPlanDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_CountPlanDetail_Store_CountPlan_MasterID", + column: x => x.MasterID, + principalTable: "Store_CountPlan", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_CustomerAsnDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CustomerAsnDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_CustomerAsnDetail_Store_CustomerAsn_MasterID", + column: x => x.MasterID, + principalTable: "Store_CustomerAsn", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_CustomerReturnNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_CustomerReturnNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_CustomerReturnNoteDetail_Store_CustomerReturnNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_CustomerReturnNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_DeliverNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_DeliverNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_DeliverNoteDetail_Store_DeliverNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_DeliverNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_DeliverPlanDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_DeliverPlanDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_DeliverPlanDetail_Store_DeliverPlan_MasterID", + column: x => x.MasterID, + principalTable: "Store_DeliverPlan", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_DeliverRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + AreaCode = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_DeliverRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_DeliverRequestDetail_Store_DeliverRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_DeliverRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_InspectAbnormalNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + AbnormalType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Photos = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InspectAbnormalNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_InspectAbnormalNoteDetail_Store_InspectAbnormalNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_InspectAbnormalNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_InspectNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + InspectType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SamplePercent = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiveQty = table.Column(type: "decimal(18,6)", nullable: false), + InspectQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + GoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + FailedReason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FailedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + CrackQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + Photos = table.Column(type: "nvarchar(max)", nullable: true), + InspectUser = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + NotPassedQty = table.Column(type: "decimal(18,6)", nullable: false), + DetailInspectStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + AbcClass = table.Column(type: "nvarchar(max)", nullable: true), + Appearance = table.Column(type: "nvarchar(max)", nullable: true), + Volume = table.Column(type: "nvarchar(max)", nullable: true), + Weight = table.Column(type: "nvarchar(max)", nullable: true), + OtherPropertyJson = table.Column(type: "nvarchar(max)", nullable: true), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + InspectDate = table.Column(type: "datetime2", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InspectNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_InspectNoteDetail_Store_InspectNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_InspectNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_InspectNoteSummaryDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + InspectType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SamplePercent = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiveQty = table.Column(type: "decimal(18,6)", nullable: false), + InspectQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + GoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + FailedReason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FailedQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + CrackQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + InspectUser = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + NotPassedQty = table.Column(type: "decimal(18,6)", nullable: false), + SummaryInspectStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + AbcClass = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InspectNoteSummaryDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_InspectNoteSummaryDetail_Store_InspectNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_InspectNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_InspectRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + InspectType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SamplePercent = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiveQty = table.Column(type: "decimal(18,6)", nullable: false), + InspectQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + Attributes = table.Column(type: "nvarchar(max)", nullable: true), + DetailInspectStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + AbcClass = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InspectRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_InspectRequestDetail_Store_InspectRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_InspectRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_InspectRequestSummaryDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + InspectType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + SamplePercent = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReceiveQty = table.Column(type: "decimal(18,6)", nullable: false), + InspectQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + InspectReport = table.Column(type: "nvarchar(max)", nullable: true), + SummaryInspectStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + GoodQty = table.Column(type: "decimal(18,6)", nullable: false), + FailedQty = table.Column(type: "decimal(18,6)", nullable: false), + CrackQty = table.Column(type: "decimal(18,6)", nullable: false), + NotPassedQty = table.Column(type: "decimal(18,6)", nullable: false), + AbcClass = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InspectRequestSummaryDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_InspectRequestSummaryDetail_Store_InspectRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_InspectRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_InventoryInitialNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InventoryInitialNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_InventoryInitialNoteDetail_Store_InventoryInitialNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_InventoryInitialNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_InventoryTransferNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Reason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_InventoryTransferNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_InventoryTransferNoteDetail_Store_InventoryTransferNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_InventoryTransferNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_IsolationNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_IsolationNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_IsolationNoteDetail_Store_IsolationNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_IsolationNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_IssueNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + IssueTime = table.Column(type: "datetime2", nullable: false), + ExpiredTime = table.Column(type: "datetime2", nullable: false), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + WorkStation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + OnTheWayLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_IssueNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_IssueNoteDetail_Store_IssueNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_IssueNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ItemTransformNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + FromQty = table.Column(type: "decimal(18,6)", nullable: false), + FromSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromArriveDate = table.Column(type: "datetime2", nullable: false), + FromProduceDate = table.Column(type: "datetime2", nullable: false), + FromExpireDate = table.Column(type: "datetime2", nullable: false), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToQty = table.Column(type: "decimal(18,6)", nullable: false), + ToSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToArriveDate = table.Column(type: "datetime2", nullable: false), + ToProduceDate = table.Column(type: "datetime2", nullable: false), + ToExpireDate = table.Column(type: "datetime2", nullable: false), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), + ConcurrencyStamp = table.Column(type: "nvarchar(max)", nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ItemTransformNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ItemTransformNoteDetail_Store_ItemTransformNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_ItemTransformNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ItemTransformRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + FromQty = table.Column(type: "decimal(18,6)", nullable: false), + FromSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromArriveDate = table.Column(type: "datetime2", nullable: false), + FromProduceDate = table.Column(type: "datetime2", nullable: false), + FromExpireDate = table.Column(type: "datetime2", nullable: false), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToArriveDate = table.Column(type: "datetime2", nullable: false), + ToProduceDate = table.Column(type: "datetime2", nullable: false), + ToExpireDate = table.Column(type: "datetime2", nullable: false), + ToQty = table.Column(type: "decimal(18,6)", nullable: false), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ItemTransformRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ItemTransformRequestDetail_Store_ItemTransformRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_ItemTransformRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_JisDeliverNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + DeliverTime = table.Column(type: "datetime2", nullable: false), + ExpiredTime = table.Column(type: "datetime2", nullable: false), + Year = table.Column(type: "nvarchar(max)", nullable: true), + ProductNo = table.Column(type: "nvarchar(max)", nullable: true), + ProjectCode = table.Column(type: "nvarchar(max)", nullable: true), + Position = table.Column(type: "nvarchar(max)", nullable: true), + SeqNo = table.Column(type: "nvarchar(max)", nullable: true), + PackCapacity = table.Column(type: "nvarchar(max)", nullable: true), + OnlineType = table.Column(type: "nvarchar(max)", nullable: true), + Stage = table.Column(type: "nvarchar(max)", nullable: true), + UsedFor = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_JisDeliverNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_JisDeliverNoteDetail_Store_JisDeliverNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_JisDeliverNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_JisProductReceiptNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RawLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Year = table.Column(type: "nvarchar(max)", nullable: true), + ProductNo = table.Column(type: "nvarchar(max)", nullable: true), + ProjectCode = table.Column(type: "nvarchar(max)", nullable: true), + Position = table.Column(type: "nvarchar(max)", nullable: true), + SeqNo = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_JisProductReceiptNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_JisProductReceiptNoteDetail_Store_JisProductReceiptNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_JisProductReceiptNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_MaterialRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(max)", nullable: true), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + WorkStation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExpiredTime = table.Column(type: "datetime2", nullable: false), + IssuedQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + ReceivedQty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_MaterialRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_MaterialRequestDetail_Store_MaterialRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_MaterialRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_NoOkConvertOkNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_NoOkConvertOkNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_NoOkConvertOkNoteDetail_Store_NoOkConvertOkNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_NoOkConvertOkNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_OfflineSettlementNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_OfflineSettlementNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_OfflineSettlementNoteDetail_Store_OfflineSettlementNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_OfflineSettlementNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_PreparationPlanDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WorkStation = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LineStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LatestTime = table.Column(type: "datetime2", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PreparationPlanDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_PreparationPlanDetail_Store_PreparationPlan_MasterID", + column: x => x.MasterID, + principalTable: "Store_PreparationPlan", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductionPlanDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PlanQty = table.Column(type: "decimal(18,6)", nullable: false), + GoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 1m), + NoGoodQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 1m), + BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LineStatus = table.Column(type: "int", nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductionPlanDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ProductionPlanDetail_Store_ProductionPlan_MasterID", + column: x => x.MasterID, + principalTable: "Store_ProductionPlan", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductionReturnNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductionReturnNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ProductionReturnNoteDetail_Store_ProductionReturnNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_ProductionReturnNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductionReturnRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductionReturnRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ProductionReturnRequestDetail_Store_ProductionReturnRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_ProductionReturnRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductL7PartsNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RowID = table.Column(type: "int", nullable: false), + ProductNo = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Program = table.Column(type: "nvarchar(max)", nullable: true), + Position = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FATA = table.Column(type: "nvarchar(max)", nullable: true), + Configuration = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + L7Part = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CanMake = table.Column(type: "bit", nullable: false), + CanBuy = table.Column(type: "bit", nullable: false), + RawLocationCode = table.Column(type: "nvarchar(max)", nullable: true), + LocationCode = table.Column(type: "nvarchar(max)", nullable: true), + ProdLine = table.Column(type: "nvarchar(max)", nullable: true), + Qty = table.Column(type: "int", nullable: false), + State = table.Column(type: "int", nullable: false), + CreateDate = table.Column(type: "datetime2", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductL7PartsNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ProductL7PartsNoteDetail_Store_ProductL7PartsNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_ProductL7PartsNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductReceiptNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RawLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RawArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProdLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReturnQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductReceiptNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ProductReceiptNoteDetail_Store_ProductReceiptNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_ProductReceiptNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductReceiptRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + RawArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ReturnQty = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 0m), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductReceiptRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ProductReceiptRequestDetail_Store_ProductReceiptRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_ProductReceiptRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductRecycleMaterialDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProductLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductRecycleMaterialDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ProductRecycleMaterialDetail_Store_ProductRecycleNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_ProductRecycleNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductRecycleNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReasonCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductRecycleNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ProductRecycleNoteDetail_Store_ProductRecycleNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_ProductRecycleNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ProductRecycleRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + BomVersion = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RawLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RawLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RawLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RawLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RawWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ProductRecycleRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ProductRecycleRequestDetail_Store_ProductRecycleRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_ProductRecycleRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_PurchaseOrderDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierPackUom = table.Column(type: "nvarchar(max)", nullable: true), + SupplierPackQty = table.Column(type: "decimal(18,6)", nullable: false), + ConvertRate = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 1m), + IsConsignment = table.Column(type: "bit", nullable: false, defaultValue: false), + LineStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ProjectCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ShippedQty = table.Column(type: "decimal(18,6)", nullable: false), + ReceivedQty = table.Column(type: "decimal(18,6)", nullable: false), + ReturnedQty = table.Column(type: "decimal(18,6)", nullable: false), + PutAwayQty = table.Column(type: "decimal(18,6)", nullable: false), + PlanUserCode = table.Column(type: "nvarchar(max)", nullable: true), + Lot = table.Column(type: "nvarchar(max)", nullable: true), + PlanArriveDate = table.Column(type: "datetime2", nullable: false), + Ctype = table.Column(type: "nvarchar(max)", nullable: true), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + OrderRemark = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PurchaseOrderDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_PurchaseOrderDetail_Store_PurchaseOrder_MasterID", + column: x => x.MasterID, + principalTable: "Store_PurchaseOrder", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_PurchaseReceiptNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PurchaseReceiptInspectStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + InspectPhotoJson = table.Column(type: "nvarchar(max)", nullable: true), + FailedReason = table.Column(type: "nvarchar(max)", nullable: true), + MassDefect = table.Column(type: "nvarchar(max)", nullable: true), + SupplierPackUom = table.Column(type: "nvarchar(max)", nullable: true), + SupplierPackQty = table.Column(type: "decimal(18,6)", nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PurchaseReceiptNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_PurchaseReceiptNoteDetail_Store_PurchaseReceiptNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_PurchaseReceiptNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_PurchaseReceiptRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierPackUom = table.Column(type: "nvarchar(max)", nullable: true), + SupplierPackQty = table.Column(type: "decimal(18,6)", nullable: false), + ConvertRate = table.Column(type: "decimal(18,6)", nullable: false), + RecommendErpCode = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PurchaseReceiptRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_PurchaseReceiptRequestDetail_Store_PurchaseReceiptRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_PurchaseReceiptRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_PurchaseReturnNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Reason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PurchaseReturnNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_PurchaseReturnNoteDetail_Store_PurchaseReturnNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_PurchaseReturnNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_PurchaseReturnRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PurchaseReturnRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_PurchaseReturnRequestDetail_Store_PurchaseReturnRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_PurchaseReturnRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_PutawayNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + JobNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PutawayNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_PutawayNoteDetail_Store_PutawayNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_PutawayNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_PutawayRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + InventoryQty = table.Column(type: "decimal(18,6)", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_PutawayRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_PutawayRequestDetail_Store_PutawayRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_PutawayRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ReceiptAbnormalNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReceiptNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + AbnormalType = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Photos = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ReceiptAbnormalNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ReceiptAbnormalNoteDetail_Store_ReceiptAbnormalNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_ReceiptAbnormalNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_RecycledMaterialReceiptNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_RecycledMaterialReceiptNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_RecycledMaterialReceiptNoteDetail_Store_RecycledMaterialReceiptNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_RecycledMaterialReceiptNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_SaleOrderDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + SoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CustomerPackUom = table.Column(type: "nvarchar(max)", nullable: true), + CustomerPackQty = table.Column(type: "decimal(18,6)", nullable: false), + ConvertRate = table.Column(type: "decimal(18,6)", nullable: false, defaultValue: 1m), + LineStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_SaleOrderDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_SaleOrderDetail_Store_SaleOrder_MasterID", + column: x => x.MasterID, + principalTable: "Store_SaleOrder", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ScrapNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReasonCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(450)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ScrapNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ScrapNoteDetail_Store_ScrapNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_ScrapNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_ScrapRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReasonCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_ScrapRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_ScrapRequestDetail_Store_ScrapRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_ScrapRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_SupplierAsnDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + PoNumber = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + PoLine = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierPackUom = table.Column(type: "nvarchar(max)", nullable: true), + SupplierPackQty = table.Column(type: "decimal(18,6)", nullable: false), + ConvertRate = table.Column(type: "decimal(18,6)", nullable: false), + ProjectCode = table.Column(type: "nvarchar(max)", nullable: true), + Ctype = table.Column(type: "nvarchar(max)", nullable: true), + RecommendErpCode = table.Column(type: "nvarchar(max)", nullable: true), + PlanUserCode = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_SupplierAsnDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_SupplierAsnDetail_Store_SupplierAsn_MasterID", + column: x => x.MasterID, + principalTable: "Store_SupplierAsn", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_TransferNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + OnTheWayLocationCode = table.Column(type: "nvarchar(max)", nullable: true), + Reason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_TransferNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_TransferNoteDetail_Store_TransferNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_TransferNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_TransferRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Reason = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_TransferRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_TransferRequestDetail_Store_TransferRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_TransferRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_UnplannedIssueNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), + CaseCode = table.Column(type: "nvarchar(max)", nullable: true), + ProjCapacityCode = table.Column(type: "nvarchar(max)", nullable: true), + OnceBusiCode = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + Explain = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledFromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_UnplannedIssueNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_UnplannedIssueNoteDetail_Store_UnplannedIssueNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_UnplannedIssueNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_UnplannedIssueRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + CaseCode = table.Column(type: "nvarchar(max)", nullable: true), + ProjCapacityCode = table.Column(type: "nvarchar(max)", nullable: true), + OnceBusiCode = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + Explain = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_UnplannedIssueRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_UnplannedIssueRequestDetail_Store_UnplannedIssueRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_UnplannedIssueRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_UnplannedReceiptNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), + CaseCode = table.Column(type: "nvarchar(max)", nullable: true), + ProjCapacityCode = table.Column(type: "nvarchar(max)", nullable: true), + OnceBusiCode = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + Explain = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + RecommendContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendArriveDate = table.Column(type: "datetime2", nullable: false), + RecommendProduceDate = table.Column(type: "datetime2", nullable: false), + RecommendExpireDate = table.Column(type: "datetime2", nullable: false), + RecommendLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RecommendQty = table.Column(type: "decimal(18,6)", nullable: false), + HandledContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledPackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledSupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledArriveDate = table.Column(type: "datetime2", nullable: false), + HandledProduceDate = table.Column(type: "datetime2", nullable: false), + HandledExpireDate = table.Column(type: "datetime2", nullable: false), + HandledLot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + HandledQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_UnplannedReceiptNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_UnplannedReceiptNoteDetail_Store_UnplannedReceiptNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_UnplannedReceiptNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_UnplannedReceiptRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + ReasonCode = table.Column(type: "nvarchar(max)", nullable: true), + CaseCode = table.Column(type: "nvarchar(max)", nullable: true), + ProjCapacityCode = table.Column(type: "nvarchar(max)", nullable: true), + OnceBusiCode = table.Column(type: "nvarchar(max)", nullable: true), + ExtraProperties = table.Column(type: "nvarchar(max)", nullable: true), + Explain = table.Column(type: "nvarchar(max)", nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Lot = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + PackingCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ContainerCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + LocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + LocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + WarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Status = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_UnplannedReceiptRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_UnplannedReceiptRequestDetail_Store_UnplannedReceiptRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_UnplannedReceiptRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_WarehouseTransferNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Reason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_WarehouseTransferNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_WarehouseTransferNoteDetail_Store_WarehouseTransferNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_WarehouseTransferNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_WipWarehouseAdjustNoteDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Reason = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ReasonCode = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(450)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_WipWarehouseAdjustNoteDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_WipWarehouseAdjustNoteDetail_Store_WipWarehouseAdjustNote_MasterID", + column: x => x.MasterID, + principalTable: "Store_WipWarehouseAdjustNote", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_WipWarehouseAdjustRequestDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + Reason = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), + ReasonCode = table.Column(type: "nvarchar(max)", maxLength: 4096, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Uom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Qty = table.Column(type: "decimal(18,6)", precision: 18, scale: 6, nullable: false), + StdPackQty = table.Column(type: "decimal(18,6)", nullable: false), + FromPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + ToPackingCode = table.Column(type: "nvarchar(max)", nullable: true), + FromContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + ToContainerCode = table.Column(type: "nvarchar(max)", nullable: true), + FromLot = table.Column(type: "nvarchar(max)", nullable: true), + ToLot = table.Column(type: "nvarchar(max)", nullable: true), + SupplierBatch = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ArriveDate = table.Column(type: "datetime2", nullable: false), + ProduceDate = table.Column(type: "datetime2", nullable: false), + ExpireDate = table.Column(type: "datetime2", nullable: false), + FromLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + FromLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + FromStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToLocationArea = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationGroup = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ToLocationErpCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToWarehouseCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + ToStatus = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_WipWarehouseAdjustRequestDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_WipWarehouseAdjustRequestDetail_Store_WipWarehouseAdjustRequest_MasterID", + column: x => x.MasterID, + principalTable: "Store_WipWarehouseAdjustRequest", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Store_WorkOrderDetail", + columns: table => new + { + Id = table.Column(type: "uniqueidentifier", nullable: false), + EffectiveDate = table.Column(type: "datetime2", nullable: false), + Op = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RawUom = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + RawQty = table.Column(type: "decimal(18,6)", nullable: false), + RawLocationCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + CreationTime = table.Column(type: "datetime2", nullable: false), + CreatorId = table.Column(type: "uniqueidentifier", nullable: true), + LastModificationTime = table.Column(type: "datetime2", nullable: true), + LastModifierId = table.Column(type: "uniqueidentifier", nullable: true), + MasterID = table.Column(type: "uniqueidentifier", nullable: false), + TenantId = table.Column(type: "uniqueidentifier", nullable: true), + Number = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false), + Remark = table.Column(type: "nvarchar(3072)", maxLength: 3072, nullable: true), + ItemName = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc1 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemDesc2 = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: true), + ItemCode = table.Column(type: "nvarchar(64)", maxLength: 64, nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Store_WorkOrderDetail", x => x.Id); + table.ForeignKey( + name: "FK_Store_WorkOrderDetail_Store_WorkOrder_MasterID", + column: x => x.MasterID, + principalTable: "Store_WorkOrder", + principalColumn: "Id", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_Job_CheckJob_Number", + table: "Job_CheckJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_CheckJobDetail_MasterID", + table: "Job_CheckJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_CountJob_Number", + table: "Job_CountJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_CountJobDetail_MasterID", + table: "Job_CountJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_DeliverJob_Number", + table: "Job_DeliverJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_DeliverJobDetail_MasterID", + table: "Job_DeliverJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_InspectJob_Number", + table: "Job_InspectJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_InspectJobDetail_MasterID", + table: "Job_InspectJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_InspectJobSummaryDetail_MasterID", + table: "Job_InspectJobSummaryDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_IssueJob_Number", + table: "Job_IssueJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_IssueJobDetail_MasterID", + table: "Job_IssueJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_JisDeliverJob_Number", + table: "Job_JisDeliverJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_JisDeliverJobDetail_MasterID", + table: "Job_JisDeliverJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_ProductionReturnJob_Number", + table: "Job_ProductionReturnJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_ProductionReturnJobDetail_MasterID", + table: "Job_ProductionReturnJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_ProductReceiveJob_Number", + table: "Job_ProductReceiveJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_ProductReceiveJobDetail_MasterID", + table: "Job_ProductReceiveJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_PurchaseReceiptJob_Number", + table: "Job_PurchaseReceiptJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_PurchaseReceiptJobDetail_MasterID", + table: "Job_PurchaseReceiptJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_PurchaseReturnJob_Number", + table: "Job_PurchaseReturnJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_PurchaseReturnJobDetail_MasterID", + table: "Job_PurchaseReturnJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_PutawayJob_Number", + table: "Job_PutawayJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_PutawayJobDetail_MasterID", + table: "Job_PutawayJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_UnplannedIssueJob_Number", + table: "Job_UnplannedIssueJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_UnplannedIssueJobDetail_MasterID", + table: "Job_UnplannedIssueJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Job_UnplannedReceiptJob_Number", + table: "Job_UnplannedReceiptJob", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Job_UnplannedReceiptJobDetail_MasterID", + table: "Job_UnplannedReceiptJobDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_BackFlushNote_Number", + table: "Store_BackFlushNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_BackFlushNoteDetail_MasterID", + table: "Store_BackFlushNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_BackFlushNoteDetail_Number_ItemCode_Lot", + table: "Store_BackFlushNoteDetail", + columns: new[] { "Number", "ItemCode", "Lot" }, + unique: true, + filter: "[Lot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ContainerBindNote_Number", + table: "Store_ContainerBindNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ContainerBindNoteDetail_MasterID", + table: "Store_ContainerBindNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ContainerBindNoteDetail_Number_PackingCode", + table: "Store_ContainerBindNoteDetail", + columns: new[] { "Number", "PackingCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountAdjustNote_Number", + table: "Store_CountAdjustNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountAdjustNoteDetail_MasterID", + table: "Store_CountAdjustNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountAdjustNoteDetail_Number_CountLabel_ItemCode_LocationCode_Lot_Status_PackingCode", + table: "Store_CountAdjustNoteDetail", + columns: new[] { "Number", "CountLabel", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode" }, + unique: true, + filter: "[Lot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountAdjustRequest_Number", + table: "Store_CountAdjustRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountAdjustRequestDetail_MasterID", + table: "Store_CountAdjustRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountAdjustRequestDetail_Number_ItemCode_LocationCode_Lot_Status_PackingCode", + table: "Store_CountAdjustRequestDetail", + columns: new[] { "Number", "ItemCode", "LocationCode", "Lot", "Status", "PackingCode" }, + unique: true, + filter: "[Lot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountNote_Number", + table: "Store_CountNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountNoteDetail_MasterID", + table: "Store_CountNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountNoteDetail_Number_CountLabel", + table: "Store_CountNoteDetail", + columns: new[] { "Number", "CountLabel" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountPlan_Number", + table: "Store_CountPlan", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountPlanDetail_MasterID", + table: "Store_CountPlanDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_CountPlanDetail_Number_CountLabel", + table: "Store_CountPlanDetail", + columns: new[] { "Number", "CountLabel" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_CustomerAsn_CustomerCode", + table: "Store_CustomerAsn", + column: "CustomerCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_CustomerAsn_Number", + table: "Store_CustomerAsn", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_CustomerAsnDetail_MasterID", + table: "Store_CustomerAsnDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_CustomerAsnDetail_Number_ItemCode", + table: "Store_CustomerAsnDetail", + columns: new[] { "Number", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_CustomerReturnNote_Number", + table: "Store_CustomerReturnNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_CustomerReturnNoteDetail_MasterID", + table: "Store_CustomerReturnNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_CustomerReturnNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", + table: "Store_CustomerReturnNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_DeliverNote_Number", + table: "Store_DeliverNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_DeliverNoteDetail_MasterID", + table: "Store_DeliverNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_DeliverNoteDetail_Number_ItemCode_FromPackingCode_FromLot_FromLocationCode_ToLocationCode", + table: "Store_DeliverNoteDetail", + columns: new[] { "Number", "ItemCode", "FromPackingCode", "FromLot", "FromLocationCode", "ToLocationCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_DeliverPlan_Number", + table: "Store_DeliverPlan", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_DeliverPlanDetail_MasterID", + table: "Store_DeliverPlanDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_DeliverPlanDetail_Number_SoNumber_SoLine", + table: "Store_DeliverPlanDetail", + columns: new[] { "Number", "SoNumber", "SoLine" }, + unique: true, + filter: "[SoNumber] IS NOT NULL AND [SoLine] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_DeliverRequest_Number", + table: "Store_DeliverRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_DeliverRequestDetail_MasterID", + table: "Store_DeliverRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_DeliverRequestDetail_Number_ItemCode", + table: "Store_DeliverRequestDetail", + columns: new[] { "Number", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectAbnormalNote_Number", + table: "Store_InspectAbnormalNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectAbnormalNoteDetail_MasterID", + table: "Store_InspectAbnormalNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectAbnormalNoteDetail_Number_PackingCode", + table: "Store_InspectAbnormalNoteDetail", + columns: new[] { "Number", "PackingCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectNote_Number", + table: "Store_InspectNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectNoteDetail_MasterID", + table: "Store_InspectNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectNoteDetail_Number_PackingCode", + table: "Store_InspectNoteDetail", + columns: new[] { "Number", "PackingCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectNoteSummaryDetail_MasterID", + table: "Store_InspectNoteSummaryDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectNoteSummaryDetail_Number_ItemCode", + table: "Store_InspectNoteSummaryDetail", + columns: new[] { "Number", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectRequest_Number", + table: "Store_InspectRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectRequestDetail_MasterID", + table: "Store_InspectRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectRequestDetail_Number_PackingCode", + table: "Store_InspectRequestDetail", + columns: new[] { "Number", "PackingCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectRequestSummaryDetail_MasterID", + table: "Store_InspectRequestSummaryDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_InspectRequestSummaryDetail_Number_ItemCode_Lot", + table: "Store_InspectRequestSummaryDetail", + columns: new[] { "Number", "ItemCode", "Lot" }, + unique: true, + filter: "[Lot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_InventoryInitialNote_Number", + table: "Store_InventoryInitialNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_InventoryInitialNoteDetail_MasterID", + table: "Store_InventoryInitialNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_InventoryInitialNoteDetail_Number_PackingCode_ItemCode_Lot_Status", + table: "Store_InventoryInitialNoteDetail", + columns: new[] { "Number", "PackingCode", "ItemCode", "Lot", "Status" }, + unique: true, + filter: "[Lot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_InventoryTransferNote_Number", + table: "Store_InventoryTransferNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_InventoryTransferNoteDetail_MasterID", + table: "Store_InventoryTransferNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_InventoryTransferNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", + table: "Store_InventoryTransferNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_IsolationNote_Number", + table: "Store_IsolationNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_IsolationNoteDetail_FromPackingCode", + table: "Store_IsolationNoteDetail", + column: "FromPackingCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_IsolationNoteDetail_MasterID", + table: "Store_IsolationNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_IsolationNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", + table: "Store_IsolationNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_IssueNote_Number", + table: "Store_IssueNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_IssueNoteDetail_FromPackingCode", + table: "Store_IssueNoteDetail", + column: "FromPackingCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_IssueNoteDetail_MasterID", + table: "Store_IssueNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_IssueNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", + table: "Store_IssueNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ItemTransformNote_Number", + table: "Store_ItemTransformNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ItemTransformNoteDetail_MasterID", + table: "Store_ItemTransformNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ItemTransformNoteDetail_Number_FromPackingCode_FromStatus_ToPackingCode_ToStatus", + table: "Store_ItemTransformNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ItemTransformRequest_Number", + table: "Store_ItemTransformRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ItemTransformRequestDetail_MasterID", + table: "Store_ItemTransformRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ItemTransformRequestDetail_Number_FromPackingCode_FromStatus_ToPackingCode_ToStatus", + table: "Store_ItemTransformRequestDetail", + columns: new[] { "Number", "FromPackingCode", "FromStatus", "ToPackingCode", "ToStatus" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_JisDeliverNote_Number", + table: "Store_JisDeliverNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_JisDeliverNoteDetail_MasterID", + table: "Store_JisDeliverNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_JisDeliverNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", + table: "Store_JisDeliverNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_JisProductReceiptNote_Number", + table: "Store_JisProductReceiptNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_JisProductReceiptNoteDetail_MasterID", + table: "Store_JisProductReceiptNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_JisProductReceiptNoteDetail_Number_PackingCode", + table: "Store_JisProductReceiptNoteDetail", + columns: new[] { "Number", "PackingCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_MaterialRequest_Number", + table: "Store_MaterialRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_MaterialRequestDetail_ItemCode", + table: "Store_MaterialRequestDetail", + column: "ItemCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_MaterialRequestDetail_MasterID", + table: "Store_MaterialRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_MaterialRequestDetail_Number_ItemCode_ToLocationCode", + table: "Store_MaterialRequestDetail", + columns: new[] { "Number", "ItemCode", "ToLocationCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_NoOkConvertOkNote_Number", + table: "Store_NoOkConvertOkNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_NoOkConvertOkNoteDetail_MasterID", + table: "Store_NoOkConvertOkNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_NoOkConvertOkNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", + table: "Store_NoOkConvertOkNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_OfflineSettlementNote_Number", + table: "Store_OfflineSettlementNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_OfflineSettlementNoteDetail_MasterID", + table: "Store_OfflineSettlementNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_OfflineSettlementNoteDetail_Number", + table: "Store_OfflineSettlementNoteDetail", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PreparationPlan_Number", + table: "Store_PreparationPlan", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PreparationPlanDetail_MasterID", + table: "Store_PreparationPlanDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PreparationPlanDetail_Number_ItemCode", + table: "Store_PreparationPlanDetail", + columns: new[] { "Number", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductionPlan_Number", + table: "Store_ProductionPlan", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductionPlanDetail_MasterID", + table: "Store_ProductionPlanDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductionPlanDetail_Number_ItemCode", + table: "Store_ProductionPlanDetail", + columns: new[] { "Number", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductionReturnNote_Number", + table: "Store_ProductionReturnNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductionReturnNoteDetail_MasterID", + table: "Store_ProductionReturnNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductionReturnNoteDetail_Number_ItemCode_FromPackingCode_ToPackingCode_FromLocationCode_ToLocationCode", + table: "Store_ProductionReturnNoteDetail", + columns: new[] { "Number", "ItemCode", "FromPackingCode", "ToPackingCode", "FromLocationCode", "ToLocationCode" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductionReturnRequest_Number", + table: "Store_ProductionReturnRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductionReturnRequestDetail_ItemCode", + table: "Store_ProductionReturnRequestDetail", + column: "ItemCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductionReturnRequestDetail_MasterID", + table: "Store_ProductionReturnRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductionReturnRequestDetail_Number_ItemCode_FromLocationCode", + table: "Store_ProductionReturnRequestDetail", + columns: new[] { "Number", "ItemCode", "FromLocationCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductL7PartsNote_Number", + table: "Store_ProductL7PartsNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductL7PartsNoteDetail_MasterID", + table: "Store_ProductL7PartsNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductL7PartsNoteDetail_Number_ProductNo_Position_Configuration_L7Part", + table: "Store_ProductL7PartsNoteDetail", + columns: new[] { "Number", "ProductNo", "Position", "Configuration", "L7Part" }, + unique: true, + filter: "[ProductNo] IS NOT NULL AND [Position] IS NOT NULL AND [Configuration] IS NOT NULL AND [L7Part] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductReceiptNote_Number", + table: "Store_ProductReceiptNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductReceiptNoteDetail_MasterID", + table: "Store_ProductReceiptNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductReceiptNoteDetail_Number_ItemCode_PackingCode_Lot_Status", + table: "Store_ProductReceiptNoteDetail", + columns: new[] { "Number", "ItemCode", "PackingCode", "Lot", "Status" }, + unique: true, + filter: "[Lot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductReceiptRequest_Number", + table: "Store_ProductReceiptRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductReceiptRequestDetail_MasterID", + table: "Store_ProductReceiptRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductReceiptRequestDetail_Number_ItemCode_LocationCode", + table: "Store_ProductReceiptRequestDetail", + columns: new[] { "Number", "ItemCode", "LocationCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductRecycleMaterialDetail_MasterID", + table: "Store_ProductRecycleMaterialDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductRecycleMaterialDetail_Number_ProductItemCode_ItemCode", + table: "Store_ProductRecycleMaterialDetail", + columns: new[] { "Number", "ProductItemCode", "ItemCode" }); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductRecycleNote_Number", + table: "Store_ProductRecycleNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductRecycleNoteDetail_MasterID", + table: "Store_ProductRecycleNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductRecycleNoteDetail_Number_ItemCode", + table: "Store_ProductRecycleNoteDetail", + columns: new[] { "Number", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductRecycleRequest_Number", + table: "Store_ProductRecycleRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductRecycleRequestDetail_MasterID", + table: "Store_ProductRecycleRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ProductRecycleRequestDetail_Number_ItemCode", + table: "Store_ProductRecycleRequestDetail", + columns: new[] { "Number", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseOrder_Number", + table: "Store_PurchaseOrder", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseOrderDetail_ItemCode_Number_PoLine", + table: "Store_PurchaseOrderDetail", + columns: new[] { "ItemCode", "Number", "PoLine" }, + unique: true, + filter: "[PoLine] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseOrderDetail_MasterID", + table: "Store_PurchaseOrderDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReceiptNote_Number", + table: "Store_PurchaseReceiptNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReceiptNote_SupplierCode", + table: "Store_PurchaseReceiptNote", + column: "SupplierCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReceiptNoteDetail_MasterID", + table: "Store_PurchaseReceiptNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReceiptRequest_Number", + table: "Store_PurchaseReceiptRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReceiptRequest_SupplierCode", + table: "Store_PurchaseReceiptRequest", + column: "SupplierCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReceiptRequestDetail_MasterID", + table: "Store_PurchaseReceiptRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReceiptRequestDetail_Number_PackingCode", + table: "Store_PurchaseReceiptRequestDetail", + columns: new[] { "Number", "PackingCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReturnNote_Number", + table: "Store_PurchaseReturnNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReturnNoteDetail_MasterID", + table: "Store_PurchaseReturnNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReturnNoteDetail_Number_PackingCode", + table: "Store_PurchaseReturnNoteDetail", + columns: new[] { "Number", "PackingCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReturnRequest_Number", + table: "Store_PurchaseReturnRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReturnRequestDetail_MasterID", + table: "Store_PurchaseReturnRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PurchaseReturnRequestDetail_Number_PackingCode", + table: "Store_PurchaseReturnRequestDetail", + columns: new[] { "Number", "PackingCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PutawayNote_Number", + table: "Store_PutawayNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PutawayNoteDetail_MasterID", + table: "Store_PutawayNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PutawayNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode_ToPackingCode", + table: "Store_PutawayNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "ToPackingCode" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL AND [ToPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_PutawayRequest_Number", + table: "Store_PutawayRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_PutawayRequestDetail_MasterID", + table: "Store_PutawayRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ReceiptAbnormalNote_AsnNumber_Number_SupplierCode_ReceiptNumber", + table: "Store_ReceiptAbnormalNote", + columns: new[] { "AsnNumber", "Number", "SupplierCode", "ReceiptNumber" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ReceiptAbnormalNote_SupplierCode", + table: "Store_ReceiptAbnormalNote", + column: "SupplierCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ReceiptAbnormalNoteDetail_MasterID", + table: "Store_ReceiptAbnormalNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ReceiptAbnormalNoteDetail_Number_PackingCode_ReceiptNumber", + table: "Store_ReceiptAbnormalNoteDetail", + columns: new[] { "Number", "PackingCode", "ReceiptNumber" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_RecycledMaterialReceiptNote_Number", + table: "Store_RecycledMaterialReceiptNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_RecycledMaterialReceiptNoteDetail_MasterID", + table: "Store_RecycledMaterialReceiptNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_RecycledMaterialReceiptNoteDetail_Number_PackingCode", + table: "Store_RecycledMaterialReceiptNoteDetail", + columns: new[] { "Number", "PackingCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_SaleOrder_CustomerCode", + table: "Store_SaleOrder", + column: "CustomerCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_SaleOrder_Number", + table: "Store_SaleOrder", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_SaleOrderDetail_MasterID", + table: "Store_SaleOrderDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_SaleOrderDetail_Number_SoLine_ItemCode", + table: "Store_SaleOrderDetail", + columns: new[] { "Number", "SoLine", "ItemCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ScrapNote_Number", + table: "Store_ScrapNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ScrapNoteDetail_MasterID", + table: "Store_ScrapNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ScrapNoteDetail_Number_ItemCode_FromPackingCode_FromLocationCode_ToLocationCode_FromLot_FromStatus", + table: "Store_ScrapNoteDetail", + columns: new[] { "Number", "ItemCode", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromLot", "FromStatus" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL AND [FromLot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ScrapRequest_Number", + table: "Store_ScrapRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_ScrapRequestDetail_MasterID", + table: "Store_ScrapRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_ScrapRequestDetail_Number_ItemCode_LocationCode", + table: "Store_ScrapRequestDetail", + columns: new[] { "Number", "ItemCode", "LocationCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_SplitPackingRec_FromPackingCode_ToPackingCode", + table: "Store_SplitPackingRec", + columns: new[] { "FromPackingCode", "ToPackingCode" }); + + migrationBuilder.CreateIndex( + name: "IX_Store_SplitPackingRec_ToPackingCode", + table: "Store_SplitPackingRec", + column: "ToPackingCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_SupplierAsn_Number", + table: "Store_SupplierAsn", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_SupplierAsn_SupplierCode", + table: "Store_SupplierAsn", + column: "SupplierCode"); + + migrationBuilder.CreateIndex( + name: "IX_Store_SupplierAsnDetail_MasterID", + table: "Store_SupplierAsnDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_SupplierAsnDetail_Number_ItemCode_PackingCode", + table: "Store_SupplierAsnDetail", + columns: new[] { "Number", "ItemCode", "PackingCode" }, + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_TransferNote_Number", + table: "Store_TransferNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_TransferNoteDetail_MasterID", + table: "Store_TransferNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_TransferNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode_FromStatus_ToStatus", + table: "Store_TransferNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_TransferRequest_Number", + table: "Store_TransferRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_TransferRequestDetail_MasterID", + table: "Store_TransferRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedIssueNote_Number", + table: "Store_UnplannedIssueNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedIssueNoteDetail_MasterID", + table: "Store_UnplannedIssueNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedIssueNoteDetail_Number_PackingCode_ItemCode_Lot_Status", + table: "Store_UnplannedIssueNoteDetail", + columns: new[] { "Number", "PackingCode", "ItemCode", "Lot", "Status" }, + unique: true, + filter: "[Lot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedIssueRequest_Number", + table: "Store_UnplannedIssueRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedIssueRequestDetail_MasterID", + table: "Store_UnplannedIssueRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedIssueRequestDetail_Number_PackingCode_ItemCode_Lot_Status", + table: "Store_UnplannedIssueRequestDetail", + columns: new[] { "Number", "PackingCode", "ItemCode", "Lot", "Status" }, + unique: true, + filter: "[Lot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedReceiptNote_Number", + table: "Store_UnplannedReceiptNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedReceiptNoteDetail_MasterID", + table: "Store_UnplannedReceiptNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedReceiptNoteDetail_Number_PackingCode_ItemCode_Lot_Status", + table: "Store_UnplannedReceiptNoteDetail", + columns: new[] { "Number", "PackingCode", "ItemCode", "Lot", "Status" }, + unique: true, + filter: "[Lot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedReceiptRequest_Number", + table: "Store_UnplannedReceiptRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedReceiptRequestDetail_MasterID", + table: "Store_UnplannedReceiptRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_UnplannedReceiptRequestDetail_Number_PackingCode_ItemCode_Lot_Status", + table: "Store_UnplannedReceiptRequestDetail", + columns: new[] { "Number", "PackingCode", "ItemCode", "Lot", "Status" }, + unique: true, + filter: "[Lot] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_WarehouseTransferNote_Number", + table: "Store_WarehouseTransferNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_WarehouseTransferNoteDetail_MasterID", + table: "Store_WarehouseTransferNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_WarehouseTransferNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode", + table: "Store_WarehouseTransferNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_WipWarehouseAdjustNote_Number", + table: "Store_WipWarehouseAdjustNote", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_WipWarehouseAdjustNoteDetail_MasterID", + table: "Store_WipWarehouseAdjustNoteDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_WipWarehouseAdjustNoteDetail_Number_FromPackingCode_FromLocationCode_ToLocationCode_FromStatus_ToStatus", + table: "Store_WipWarehouseAdjustNoteDetail", + columns: new[] { "Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus" }, + unique: true, + filter: "[FromPackingCode] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_Store_WipWarehouseAdjustRequest_Number", + table: "Store_WipWarehouseAdjustRequest", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_WipWarehouseAdjustRequestDetail_MasterID", + table: "Store_WipWarehouseAdjustRequestDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_WorkOrder_Number", + table: "Store_WorkOrder", + column: "Number", + unique: true); + + migrationBuilder.CreateIndex( + name: "IX_Store_WorkOrderDetail_MasterID", + table: "Store_WorkOrderDetail", + column: "MasterID"); + + migrationBuilder.CreateIndex( + name: "IX_Store_WorkOrderDetail_Number_ItemCode", + table: "Store_WorkOrderDetail", + columns: new[] { "Number", "ItemCode" }, + unique: true); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "Job_CheckJobDetail"); + + migrationBuilder.DropTable( + name: "Job_CountJobDetail"); + + migrationBuilder.DropTable( + name: "Job_DeliverJobDetail"); + + migrationBuilder.DropTable( + name: "Job_InspectJobDetail"); + + migrationBuilder.DropTable( + name: "Job_InspectJobSummaryDetail"); + + migrationBuilder.DropTable( + name: "Job_IssueJobDetail"); + + migrationBuilder.DropTable( + name: "Job_JisDeliverJobDetail"); + + migrationBuilder.DropTable( + name: "Job_ProductionReturnJobDetail"); + + migrationBuilder.DropTable( + name: "Job_ProductReceiveJobDetail"); + + migrationBuilder.DropTable( + name: "Job_PurchaseReceiptJobDetail"); + + migrationBuilder.DropTable( + name: "Job_PurchaseReturnJobDetail"); + + migrationBuilder.DropTable( + name: "Job_PutawayJobDetail"); + + migrationBuilder.DropTable( + name: "Job_UnplannedIssueJobDetail"); + + migrationBuilder.DropTable( + name: "Job_UnplannedReceiptJobDetail"); + + migrationBuilder.DropTable( + name: "Store_BackFlushNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_ContainerBindNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_CountAdjustNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_CountAdjustRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_CountNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_CountPlanDetail"); + + migrationBuilder.DropTable( + name: "Store_CustomerAsnDetail"); + + migrationBuilder.DropTable( + name: "Store_CustomerReturnNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_DeliverNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_DeliverPlanDetail"); + + migrationBuilder.DropTable( + name: "Store_DeliverRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_ExchangeData"); + + migrationBuilder.DropTable( + name: "Store_InspectAbnormalNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_InspectNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_InspectNoteSummaryDetail"); + + migrationBuilder.DropTable( + name: "Store_InspectRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_InspectRequestSummaryDetail"); + + migrationBuilder.DropTable( + name: "Store_InventoryInitialNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_InventoryTransferNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_IsolationNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_IssueNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_ItemTransformNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_ItemTransformRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_JisDeliverNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_JisProductReceiptNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_MaterialRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_NoOkConvertOkNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_OfflineSettlementNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_PreparationPlanDetail"); + + migrationBuilder.DropTable( + name: "Store_ProductionPlanDetail"); + + migrationBuilder.DropTable( + name: "Store_ProductionReturnNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_ProductionReturnRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_ProductL7PartsNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_ProductReceiptNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_ProductReceiptRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_ProductRecycleMaterialDetail"); + + migrationBuilder.DropTable( + name: "Store_ProductRecycleNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_ProductRecycleRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_PurchaseOrderDetail"); + + migrationBuilder.DropTable( + name: "Store_PurchaseReceiptNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_PurchaseReceiptRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_PurchaseReturnNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_PurchaseReturnRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_PutawayNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_PutawayRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_ReceiptAbnormalNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_RecycledMaterialReceiptNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_SaleOrderDetail"); + + migrationBuilder.DropTable( + name: "Store_ScrapNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_ScrapRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_SplitPackingRec"); + + migrationBuilder.DropTable( + name: "Store_SupplierAsnDetail"); + + migrationBuilder.DropTable( + name: "Store_TransferNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_TransferRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_UnplannedIssueNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_UnplannedIssueRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_UnplannedReceiptNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_UnplannedReceiptRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_WarehouseTransferNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_WipWarehouseAdjustNoteDetail"); + + migrationBuilder.DropTable( + name: "Store_WipWarehouseAdjustRequestDetail"); + + migrationBuilder.DropTable( + name: "Store_WorkOrderDetail"); + + migrationBuilder.DropTable( + name: "Job_CheckJob"); + + migrationBuilder.DropTable( + name: "Job_CountJob"); + + migrationBuilder.DropTable( + name: "Job_DeliverJob"); + + migrationBuilder.DropTable( + name: "Job_InspectJob"); + + migrationBuilder.DropTable( + name: "Job_IssueJob"); + + migrationBuilder.DropTable( + name: "Job_JisDeliverJob"); + + migrationBuilder.DropTable( + name: "Job_ProductionReturnJob"); + + migrationBuilder.DropTable( + name: "Job_ProductReceiveJob"); + + migrationBuilder.DropTable( + name: "Job_PurchaseReceiptJob"); + + migrationBuilder.DropTable( + name: "Job_PurchaseReturnJob"); + + migrationBuilder.DropTable( + name: "Job_PutawayJob"); + + migrationBuilder.DropTable( + name: "Job_UnplannedIssueJob"); + + migrationBuilder.DropTable( + name: "Job_UnplannedReceiptJob"); + + migrationBuilder.DropTable( + name: "Store_BackFlushNote"); + + migrationBuilder.DropTable( + name: "Store_ContainerBindNote"); + + migrationBuilder.DropTable( + name: "Store_CountAdjustNote"); + + migrationBuilder.DropTable( + name: "Store_CountAdjustRequest"); + + migrationBuilder.DropTable( + name: "Store_CountNote"); + + migrationBuilder.DropTable( + name: "Store_CountPlan"); + + migrationBuilder.DropTable( + name: "Store_CustomerAsn"); + + migrationBuilder.DropTable( + name: "Store_CustomerReturnNote"); + + migrationBuilder.DropTable( + name: "Store_DeliverNote"); + + migrationBuilder.DropTable( + name: "Store_DeliverPlan"); + + migrationBuilder.DropTable( + name: "Store_DeliverRequest"); + + migrationBuilder.DropTable( + name: "Store_InspectAbnormalNote"); + + migrationBuilder.DropTable( + name: "Store_InspectNote"); + + migrationBuilder.DropTable( + name: "Store_InspectRequest"); + + migrationBuilder.DropTable( + name: "Store_InventoryInitialNote"); + + migrationBuilder.DropTable( + name: "Store_InventoryTransferNote"); + + migrationBuilder.DropTable( + name: "Store_IsolationNote"); + + migrationBuilder.DropTable( + name: "Store_IssueNote"); + + migrationBuilder.DropTable( + name: "Store_ItemTransformNote"); + + migrationBuilder.DropTable( + name: "Store_ItemTransformRequest"); + + migrationBuilder.DropTable( + name: "Store_JisDeliverNote"); + + migrationBuilder.DropTable( + name: "Store_JisProductReceiptNote"); + + migrationBuilder.DropTable( + name: "Store_MaterialRequest"); + + migrationBuilder.DropTable( + name: "Store_NoOkConvertOkNote"); + + migrationBuilder.DropTable( + name: "Store_OfflineSettlementNote"); + + migrationBuilder.DropTable( + name: "Store_PreparationPlan"); + + migrationBuilder.DropTable( + name: "Store_ProductionPlan"); + + migrationBuilder.DropTable( + name: "Store_ProductionReturnNote"); + + migrationBuilder.DropTable( + name: "Store_ProductionReturnRequest"); + + migrationBuilder.DropTable( + name: "Store_ProductL7PartsNote"); + + migrationBuilder.DropTable( + name: "Store_ProductReceiptNote"); + + migrationBuilder.DropTable( + name: "Store_ProductReceiptRequest"); + + migrationBuilder.DropTable( + name: "Store_ProductRecycleNote"); + + migrationBuilder.DropTable( + name: "Store_ProductRecycleRequest"); + + migrationBuilder.DropTable( + name: "Store_PurchaseOrder"); + + migrationBuilder.DropTable( + name: "Store_PurchaseReceiptNote"); + + migrationBuilder.DropTable( + name: "Store_PurchaseReceiptRequest"); + + migrationBuilder.DropTable( + name: "Store_PurchaseReturnNote"); + + migrationBuilder.DropTable( + name: "Store_PurchaseReturnRequest"); + + migrationBuilder.DropTable( + name: "Store_PutawayNote"); + + migrationBuilder.DropTable( + name: "Store_PutawayRequest"); + + migrationBuilder.DropTable( + name: "Store_ReceiptAbnormalNote"); + + migrationBuilder.DropTable( + name: "Store_RecycledMaterialReceiptNote"); + + migrationBuilder.DropTable( + name: "Store_SaleOrder"); + + migrationBuilder.DropTable( + name: "Store_ScrapNote"); + + migrationBuilder.DropTable( + name: "Store_ScrapRequest"); + + migrationBuilder.DropTable( + name: "Store_SupplierAsn"); + + migrationBuilder.DropTable( + name: "Store_TransferNote"); + + migrationBuilder.DropTable( + name: "Store_TransferRequest"); + + migrationBuilder.DropTable( + name: "Store_UnplannedIssueNote"); + + migrationBuilder.DropTable( + name: "Store_UnplannedIssueRequest"); + + migrationBuilder.DropTable( + name: "Store_UnplannedReceiptNote"); + + migrationBuilder.DropTable( + name: "Store_UnplannedReceiptRequest"); + + migrationBuilder.DropTable( + name: "Store_WarehouseTransferNote"); + + migrationBuilder.DropTable( + name: "Store_WipWarehouseAdjustNote"); + + migrationBuilder.DropTable( + name: "Store_WipWarehouseAdjustRequest"); + + migrationBuilder.DropTable( + name: "Store_WorkOrder"); + } + } +} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230412072454_Store_AddColumn.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223065640_base.Designer.cs similarity index 96% rename from be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230412072454_Store_AddColumn.Designer.cs rename to be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223065640_base.Designer.cs index 72ce9d5e6..0703708b5 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230412072454_Store_AddColumn.Designer.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223065640_base.Designer.cs @@ -13,8 +13,8 @@ using Win_in.Sfs.Wms.Store.EntityFrameworkCore; namespace Win_in.Sfs.Wms.Store.Migrations { [DbContext(typeof(StoreDbContext))] - [Migration("20230412072454_Store_AddColumn")] - partial class Store_AddColumn + [Migration("20240223065640_base")] + partial class @base { protected override void BuildTargetModel(ModelBuilder modelBuilder) { @@ -3924,6 +3924,10 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); + b.Property("TyrpNumber") + .IsRequired() + .HasColumnType("nvarchar(max)"); + b.Property("WriteTime") .HasColumnType("datetime2"); @@ -4791,6 +4795,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("decimal(18,6)") .HasDefaultValue(0m); + b.Property("InspectDate") + .HasColumnType("datetime2"); + b.Property("InspectQty") .ValueGeneratedOnAdd() .HasColumnType("decimal(18,6)") @@ -11234,6 +11241,7 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnName("TenantId"); b.Property("Type") + .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); @@ -16859,6 +16867,152 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.ToTable("Store_ScrapRequestDetail", (string)null); }); + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SplitPackingRec", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("ArrivalNoticNumber") + .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("FromLot") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromQty") + .HasPrecision(18, 6) + .HasColumnType("decimal(18,6)"); + + b.Property("FromStdPackQty") + .HasColumnType("decimal(18,6)"); + + b.Property("FromTopPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromUom") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ItemCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ItemDesc1") + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); + + b.Property("ItemDesc2") + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); + + b.Property("ItemName") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("LabelType") + .HasColumnType("int"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("OprType") + .HasColumnType("int"); + + b.Property("PurchaseInfo_AsnNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("PurchaseInfo_PoNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("PutOnShelfNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ReceiptRecNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskOrderNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("ToLot") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToQty") + .HasPrecision(18, 6) + .HasColumnType("decimal(18,6)"); + + b.Property("ToStdPackQty") + .HasColumnType("decimal(18,6)"); + + b.Property("ToTopPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToUom") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.HasKey("Id"); + + b.HasIndex("ToPackingCode"); + + b.HasIndex("FromPackingCode", "ToPackingCode"); + + b.ToTable("Store_SplitPackingRec", (string)null); + }); + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => { b.Property("Id") @@ -17763,6 +17917,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); + b.Property("OANumber") + .HasColumnType("nvarchar(max)"); + b.Property("Priority") .ValueGeneratedOnAdd() .HasColumnType("int") @@ -17786,6 +17943,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); + b.Property("UnplannedIssueType") + .HasColumnType("int"); + b.Property("UpStreamJobNumber") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); @@ -17813,6 +17973,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); + b.Property("CaseCode") + .HasColumnType("nvarchar(max)"); + b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); @@ -17821,6 +17984,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); + b.Property("Explain") + .HasColumnType("nvarchar(max)"); + b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); @@ -17919,6 +18085,12 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); + b.Property("OnceBusiCode") + .HasColumnType("nvarchar(max)"); + + b.Property("ProjCapacityCode") + .HasColumnType("nvarchar(max)"); + b.Property("ReasonCode") .HasColumnType("nvarchar(max)"); @@ -18061,6 +18233,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("nvarchar(64)") .HasColumnName("Number"); + b.Property("OANumber") + .HasColumnType("nvarchar(max)"); + b.Property("Remark") .HasMaxLength(3072) .HasColumnType("nvarchar(3072)") @@ -18074,6 +18249,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); + b.Property("UnplannedIssueType") + .HasColumnType("int"); + b.Property("Worker") .HasColumnType("nvarchar(max)"); @@ -18093,6 +18271,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ArriveDate") .HasColumnType("datetime2"); + b.Property("CaseCode") + .HasColumnType("nvarchar(max)"); + b.Property("ContainerCode") .HasMaxLength(64) .HasColumnType("nvarchar(64)") @@ -18109,6 +18290,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ExpireDate") .HasColumnType("datetime2"); + b.Property("Explain") + .HasColumnType("nvarchar(max)"); + b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); @@ -18235,6 +18419,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("nvarchar(64)") .HasColumnName("Number"); + b.Property("OnceBusiCode") + .HasColumnType("nvarchar(max)"); + b.Property("PackingCode") .IsRequired() .HasMaxLength(64) @@ -18244,6 +18431,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ProduceDate") .HasColumnType("datetime2"); + b.Property("ProjCapacityCode") + .HasColumnType("nvarchar(max)"); + b.Property("Qty") .HasPrecision(18, 6) .HasColumnType("decimal(18,6)") @@ -18420,6 +18610,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("nvarchar(64)") .HasColumnName("Number"); + b.Property("OANumber") + .HasColumnType("nvarchar(max)"); + b.Property("Remark") .HasMaxLength(3072) .HasColumnType("nvarchar(3072)") @@ -18434,6 +18627,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); + b.Property("UnplannedIssueType") + .HasColumnType("int"); + b.Property("Worker") .HasColumnType("nvarchar(max)"); @@ -18453,6 +18649,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ArriveDate") .HasColumnType("datetime2"); + b.Property("CaseCode") + .HasColumnType("nvarchar(max)"); + b.Property("ContainerCode") .HasMaxLength(64) .HasColumnType("nvarchar(64)") @@ -18469,6 +18668,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ExpireDate") .HasColumnType("datetime2"); + b.Property("Explain") + .HasColumnType("nvarchar(max)"); + b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); @@ -18538,6 +18740,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("nvarchar(64)") .HasColumnName("Number"); + b.Property("OnceBusiCode") + .HasColumnType("nvarchar(max)"); + b.Property("PackingCode") .IsRequired() .HasMaxLength(64) @@ -18547,6 +18752,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ProduceDate") .HasColumnType("datetime2"); + b.Property("ProjCapacityCode") + .HasColumnType("nvarchar(max)"); + b.Property("Qty") .HasPrecision(18, 6) .HasColumnType("decimal(18,6)") @@ -18683,6 +18891,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); + b.Property("OANumber") + .HasColumnType("nvarchar(max)"); + b.Property("Priority") .ValueGeneratedOnAdd() .HasColumnType("int") @@ -18706,6 +18917,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); + b.Property("UnplannedReceiptType") + .HasColumnType("int"); + b.Property("UpStreamJobNumber") .HasMaxLength(64) .HasColumnType("nvarchar(64)"); @@ -18733,6 +18947,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("Id") .HasColumnType("uniqueidentifier"); + b.Property("CaseCode") + .HasColumnType("nvarchar(max)"); + b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); @@ -18741,6 +18958,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); + b.Property("Explain") + .HasColumnType("nvarchar(max)"); + b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); @@ -18839,6 +19059,12 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); + b.Property("OnceBusiCode") + .HasColumnType("nvarchar(max)"); + + b.Property("ProjCapacityCode") + .HasColumnType("nvarchar(max)"); + b.Property("ReasonCode") .HasColumnType("nvarchar(max)"); @@ -18981,6 +19207,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("nvarchar(64)") .HasColumnName("Number"); + b.Property("OANumber") + .HasColumnType("nvarchar(max)"); + b.Property("Remark") .HasMaxLength(3072) .HasColumnType("nvarchar(3072)") @@ -18994,6 +19223,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasMaxLength(64) .HasColumnType("nvarchar(64)"); + b.Property("UnplannedReceiptType") + .HasColumnType("int"); + b.Property("Worker") .HasColumnType("nvarchar(max)"); @@ -19013,6 +19245,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ArriveDate") .HasColumnType("datetime2"); + b.Property("CaseCode") + .HasColumnType("nvarchar(max)"); + b.Property("ContainerCode") .HasMaxLength(64) .HasColumnType("nvarchar(64)") @@ -19029,6 +19264,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ExpireDate") .HasColumnType("datetime2"); + b.Property("Explain") + .HasColumnType("nvarchar(max)"); + b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); @@ -19155,6 +19393,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("nvarchar(64)") .HasColumnName("Number"); + b.Property("OnceBusiCode") + .HasColumnType("nvarchar(max)"); + b.Property("PackingCode") .IsRequired() .HasMaxLength(64) @@ -19164,6 +19405,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ProduceDate") .HasColumnType("datetime2"); + b.Property("ProjCapacityCode") + .HasColumnType("nvarchar(max)"); + b.Property("Qty") .HasPrecision(18, 6) .HasColumnType("decimal(18,6)") @@ -19340,6 +19584,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("nvarchar(64)") .HasColumnName("Number"); + b.Property("OANumber") + .HasColumnType("nvarchar(max)"); + b.Property("Remark") .HasMaxLength(3072) .HasColumnType("nvarchar(3072)") @@ -19354,6 +19601,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); + b.Property("UnplannedReceiptType") + .HasColumnType("int"); + b.Property("Worker") .HasColumnType("nvarchar(max)"); @@ -19373,6 +19623,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ArriveDate") .HasColumnType("datetime2"); + b.Property("CaseCode") + .HasColumnType("nvarchar(max)"); + b.Property("ContainerCode") .HasMaxLength(64) .HasColumnType("nvarchar(64)") @@ -19389,6 +19642,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ExpireDate") .HasColumnType("datetime2"); + b.Property("Explain") + .HasColumnType("nvarchar(max)"); + b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); @@ -19458,6 +19714,9 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("nvarchar(64)") .HasColumnName("Number"); + b.Property("OnceBusiCode") + .HasColumnType("nvarchar(max)"); + b.Property("PackingCode") .IsRequired() .HasMaxLength(64) @@ -19467,11 +19726,17 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Property("ProduceDate") .HasColumnType("datetime2"); + b.Property("ProjCapacityCode") + .HasColumnType("nvarchar(max)"); + b.Property("Qty") .HasPrecision(18, 6) .HasColumnType("decimal(18,6)") .HasColumnName("Qty"); + b.Property("ReasonCode") + .HasColumnType("nvarchar(max)"); + b.Property("Remark") .HasMaxLength(3072) .HasColumnType("nvarchar(3072)") @@ -19773,7 +20038,7 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.ToTable("Store_WarehouseTransferNoteDetail", (string)null); }); - modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WipWarehouseAdjustNote", b => { b.Property("Id") .HasColumnType("uniqueidentifier"); @@ -19787,6 +20052,12 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("nvarchar(40)") .HasColumnName("ConcurrencyStamp"); + b.Property("ConfirmTime") + .HasColumnType("datetime2"); + + b.Property("Confirmed") + .HasColumnType("bit"); + b.Property("CreationTime") .HasColumnType("datetime2") .HasColumnName("CreationTime"); @@ -19795,33 +20066,14 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("CreatorId"); - b.Property("EffectiveDate") - .HasColumnType("datetime2"); - b.Property("ExtraProperties") .HasColumnType("nvarchar(max)") .HasColumnName("ExtraProperties"); - b.Property("ItemCode") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemCode"); - - b.Property("ItemDesc1") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc1"); - - b.Property("ItemDesc2") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)") - .HasColumnName("ItemDesc2"); - - b.Property("ItemName") + b.Property("JobNumber") .HasMaxLength(64) .HasColumnType("nvarchar(64)") - .HasColumnName("ItemName"); + .HasColumnName("JobNumber"); b.Property("LastModificationTime") .HasColumnType("datetime2") @@ -19831,36 +20083,589 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnType("uniqueidentifier") .HasColumnName("LastModifierId"); - b.Property("LocationCode") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - b.Property("Number") .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)") .HasColumnName("Number"); - b.Property("Op") - .HasMaxLength(64) - .HasColumnType("nvarchar(64)"); - - b.Property("Qty") - .HasPrecision(18, 6) - .HasColumnType("decimal(18,6)") - .HasColumnName("Qty"); - b.Property("Remark") .HasMaxLength(3072) .HasColumnType("nvarchar(3072)") .HasColumnName("Remark"); + b.Property("RequestNumber") + .HasColumnType("nvarchar(max)"); + b.Property("TenantId") .HasColumnType("uniqueidentifier") .HasColumnName("TenantId"); b.Property("Type") - .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("Worker") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("Number") + .IsUnique(); + + b.ToTable("Store_WipWarehouseAdjustNote", (string)null); + }); + + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WipWarehouseAdjustNoteDetail", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("ArriveDate") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("ExpireDate") + .HasColumnType("datetime2"); + + b.Property("FromContainerCode") + .HasColumnType("nvarchar(max)"); + + b.Property("FromLocationArea") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("FromLocationArea"); + + b.Property("FromLocationCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("FromLocationCode"); + + b.Property("FromLocationErpCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("FromLocationErpCode"); + + b.Property("FromLocationGroup") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("FromLocationGroup"); + + b.Property("FromLot") + .HasColumnType("nvarchar(max)"); + + b.Property("FromPackingCode") + .HasColumnType("nvarchar(450)"); + + b.Property("FromStatus") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromWarehouseCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("FromWarehouseCode"); + + b.Property("ItemCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemCode"); + + b.Property("ItemDesc1") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemDesc1"); + + b.Property("ItemDesc2") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemDesc2"); + + b.Property("ItemName") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemName"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("MasterID") + .HasColumnType("uniqueidentifier"); + + b.Property("Number") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("Number"); + + b.Property("ProduceDate") + .HasColumnType("datetime2"); + + b.Property("Qty") + .HasPrecision(18, 6) + .HasColumnType("decimal(18,6)") + .HasColumnName("Qty"); + + b.Property("Reason") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ReasonCode") + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") + .HasColumnName("Remark"); + + b.Property("StdPackQty") + .HasColumnType("decimal(18,6)"); + + b.Property("SupplierBatch") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("SupplierBatch"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("ToContainerCode") + .HasColumnType("nvarchar(max)"); + + b.Property("ToLocationArea") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ToLocationArea"); + + b.Property("ToLocationCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ToLocationCode"); + + b.Property("ToLocationErpCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ToLocationErpCode"); + + b.Property("ToLocationGroup") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ToLocationGroup"); + + b.Property("ToLot") + .HasColumnType("nvarchar(max)"); + + b.Property("ToPackingCode") + .HasColumnType("nvarchar(max)"); + + b.Property("ToStatus") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToWarehouseCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ToWarehouseCode"); + + b.Property("Uom") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("Uom"); + + b.HasKey("Id"); + + b.HasIndex("MasterID"); + + b.HasIndex("Number", "FromPackingCode", "FromLocationCode", "ToLocationCode", "FromStatus", "ToStatus") + .IsUnique() + .HasFilter("[FromPackingCode] IS NOT NULL"); + + b.ToTable("Store_WipWarehouseAdjustNoteDetail", (string)null); + }); + + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WipWarehouseAdjustRequest", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("ActiveDate") + .HasColumnType("datetime2"); + + b.Property("AutoAgree") + .HasColumnType("bit"); + + b.Property("AutoCompleteJob") + .HasColumnType("bit"); + + b.Property("AutoHandle") + .HasColumnType("bit"); + + b.Property("AutoSubmit") + .HasColumnType("bit"); + + 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("DirectCreateNote") + .HasColumnType("bit"); + + b.Property("ExtraProperties") + .HasColumnType("nvarchar(max)") + .HasColumnName("ExtraProperties"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("Number") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("Number"); + + b.Property("Remark") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") + .HasColumnName("Remark"); + + b.Property("RequestStatus") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("Type") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("Worker") + .HasColumnType("nvarchar(max)"); + + b.HasKey("Id"); + + b.HasIndex("Number") + .IsUnique(); + + b.ToTable("Store_WipWarehouseAdjustRequest", (string)null); + }); + + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WipWarehouseAdjustRequestDetail", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("ArriveDate") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("uniqueidentifier") + .HasColumnName("CreatorId"); + + b.Property("ExpireDate") + .HasColumnType("datetime2"); + + b.Property("FromContainerCode") + .HasColumnType("nvarchar(max)"); + + b.Property("FromLocationArea") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("FromLocationArea"); + + b.Property("FromLocationCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("FromLocationCode"); + + b.Property("FromLocationErpCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("FromLocationErpCode"); + + b.Property("FromLocationGroup") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("FromLocationGroup"); + + b.Property("FromLot") + .HasColumnType("nvarchar(max)"); + + b.Property("FromPackingCode") + .HasColumnType("nvarchar(max)"); + + b.Property("FromStatus") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromWarehouseCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("FromWarehouseCode"); + + b.Property("ItemCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemCode"); + + b.Property("ItemDesc1") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemDesc1"); + + b.Property("ItemDesc2") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemDesc2"); + + b.Property("ItemName") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemName"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("MasterID") + .HasColumnType("uniqueidentifier"); + + b.Property("Number") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("Number"); + + b.Property("ProduceDate") + .HasColumnType("datetime2"); + + b.Property("Qty") + .HasPrecision(18, 6) + .HasColumnType("decimal(18,6)") + .HasColumnName("Qty"); + + b.Property("Reason") + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); + + b.Property("ReasonCode") + .HasMaxLength(4096) + .HasColumnType("nvarchar(max)"); + + b.Property("Remark") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") + .HasColumnName("Remark"); + + b.Property("StdPackQty") + .HasColumnType("decimal(18,6)"); + + b.Property("SupplierBatch") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("SupplierBatch"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("ToContainerCode") + .HasColumnType("nvarchar(max)"); + + b.Property("ToLocationArea") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ToLocationArea"); + + b.Property("ToLocationCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ToLocationCode"); + + b.Property("ToLocationErpCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ToLocationErpCode"); + + b.Property("ToLocationGroup") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ToLocationGroup"); + + b.Property("ToLot") + .HasColumnType("nvarchar(max)"); + + b.Property("ToPackingCode") + .HasColumnType("nvarchar(max)"); + + b.Property("ToStatus") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToWarehouseCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ToWarehouseCode"); + + b.Property("Uom") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("Uom"); + + b.HasKey("Id"); + + b.HasIndex("MasterID"); + + b.ToTable("Store_WipWarehouseAdjustRequestDetail", (string)null); + }); + + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("ActiveDate") + .HasColumnType("datetime2"); + + 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("EffectiveDate") + .HasColumnType("datetime2"); + + b.Property("ExtraProperties") + .HasColumnType("nvarchar(max)") + .HasColumnName("ExtraProperties"); + + b.Property("ItemCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemCode"); + + b.Property("ItemDesc1") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemDesc1"); + + b.Property("ItemDesc2") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemDesc2"); + + b.Property("ItemName") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("ItemName"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("LocationCode") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("Number") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)") + .HasColumnName("Number"); + + b.Property("Op") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("Qty") + .HasPrecision(18, 6) + .HasColumnType("decimal(18,6)") + .HasColumnName("Qty"); + + b.Property("Remark") + .HasMaxLength(3072) + .HasColumnType("nvarchar(3072)") + .HasColumnName("Remark"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("Type") + .IsRequired() .HasMaxLength(64) .HasColumnType("nvarchar(64)"); @@ -20621,6 +21426,24 @@ namespace Win_in.Sfs.Wms.Store.Migrations .IsRequired(); }); + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WipWarehouseAdjustNoteDetail", b => + { + b.HasOne("Win_in.Sfs.Wms.Store.Domain.WipWarehouseAdjustNote", null) + .WithMany("Details") + .HasForeignKey("MasterID") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WipWarehouseAdjustRequestDetail", b => + { + b.HasOne("Win_in.Sfs.Wms.Store.Domain.WipWarehouseAdjustRequest", null) + .WithMany("Details") + .HasForeignKey("MasterID") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrderDetail", b => { b.HasOne("Win_in.Sfs.Wms.Store.Domain.WorkOrder", null) @@ -20973,6 +21796,16 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.Navigation("Details"); }); + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WipWarehouseAdjustNote", b => + { + b.Navigation("Details"); + }); + + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WipWarehouseAdjustRequest", b => + { + b.Navigation("Details"); + }); + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.WorkOrder", b => { b.Navigation("Details"); diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223065640_base.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223065640_base.cs new file mode 100644 index 000000000..a802febf7 --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20240223065640_base.cs @@ -0,0 +1,19 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace Win_in.Sfs.Wms.Store.Migrations +{ + public partial class @base : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/StoreDbContextModelSnapshot.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/StoreDbContextModelSnapshot.cs index 4be9368b3..4976f8be9 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/StoreDbContextModelSnapshot.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/StoreDbContextModelSnapshot.cs @@ -3923,6 +3923,7 @@ namespace Win_in.Sfs.Wms.Store.Migrations .HasColumnName("TenantId"); b.Property("TyrpNumber") + .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("WriteTime") @@ -16864,6 +16865,152 @@ namespace Win_in.Sfs.Wms.Store.Migrations b.ToTable("Store_ScrapRequestDetail", (string)null); }); + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SplitPackingRec", b => + { + b.Property("Id") + .HasColumnType("uniqueidentifier"); + + b.Property("ArrivalNoticNumber") + .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("FromLot") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromQty") + .HasPrecision(18, 6) + .HasColumnType("decimal(18,6)"); + + b.Property("FromStdPackQty") + .HasColumnType("decimal(18,6)"); + + b.Property("FromTopPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("FromUom") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ItemCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ItemDesc1") + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); + + b.Property("ItemDesc2") + .HasMaxLength(1024) + .HasColumnType("nvarchar(1024)"); + + b.Property("ItemName") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("LabelType") + .HasColumnType("int"); + + b.Property("LastModificationTime") + .HasColumnType("datetime2") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("uniqueidentifier") + .HasColumnName("LastModifierId"); + + b.Property("OprType") + .HasColumnType("int"); + + b.Property("PurchaseInfo_AsnNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("PurchaseInfo_PoNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("PutOnShelfNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ReceiptRecNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskOrderNumber") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("TenantId") + .HasColumnType("uniqueidentifier") + .HasColumnName("TenantId"); + + b.Property("ToLot") + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToQty") + .HasPrecision(18, 6) + .HasColumnType("decimal(18,6)"); + + b.Property("ToStdPackQty") + .HasColumnType("decimal(18,6)"); + + b.Property("ToTopPackingCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.Property("ToUom") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("nvarchar(64)"); + + b.HasKey("Id"); + + b.HasIndex("ToPackingCode"); + + b.HasIndex("FromPackingCode", "ToPackingCode"); + + b.ToTable("Store_SplitPackingRec", (string)null); + }); + modelBuilder.Entity("Win_in.Sfs.Wms.Store.Domain.SupplierAsn", b => { b.Property("Id")