From 4964fd825ec96d27ed7476a24a581178bb5b2d6e Mon Sep 17 00:00:00 2001 From: liuyunfeng Date: Thu, 22 Feb 2024 08:44:12 +0800 Subject: [PATCH] =?UTF-8?q?add=E6=8B=86=E7=AE=B1=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TransferNotes/TransferNoteAppService.cs | 48 +- .../SplitPackings/NodeTypeEnum.cs | 13 + .../SplitPackings/OprTypeEnum.cs | 19 + .../Win_in.Sfs.Wms.Store.Domain.Shared.csproj | 2 +- .../SplitPackings/ISplitPackingRecManager.cs | 13 + .../ISplitPackingRecRepository.cs | 9 + .../SplitPackings/SplitPackingRec.cs | 76 + .../SplitPackings/SplitPackingRecManager.cs | 53 + .../Win_in.Sfs.Wms.Store.Domain.csproj | 2 +- .../IStoreDbContext.cs | 2 + .../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.Designer.cs | 20983 ---------------- .../20230412072454_Store_AddColumn.cs | 68 - .../Migrations/StoreDbContextModelSnapshot.cs | 20981 --------------- ...kingRecDbContextModelCreatingExtensions.cs | 45 + .../SplitPackingRecEfCoreRepository.cs | 12 + .../StoreDbContext.cs | 2 + .../StoreDbContextModelCreatingExtensions.cs | 3 + .../StoreEntityFrameworkCoreModule.cs | 2 + .../settings/appsettings.Development.json | 3 +- 49 files changed, 300 insertions(+), 371792 deletions(-) create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/SplitPackings/NodeTypeEnum.cs create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/SplitPackings/OprTypeEnum.cs create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/ISplitPackingRecManager.cs create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/ISplitPackingRecRepository.cs create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRec.cs create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRecManager.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.Designer.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/StoreDbContextModelSnapshot.cs create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/SplitPackings/SplitPackingRecDbContextModelCreatingExtensions.cs create mode 100644 be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/SplitPackings/SplitPackingRecEfCoreRepository.cs diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs index d1d5c3dd4..5bf6599ae 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs @@ -15,6 +15,7 @@ using Win_in.Sfs.Wms.Inventory.Application.Contracts; using Win_in.Sfs.Wms.Store.Application.Contracts; using Win_in.Sfs.Wms.Store.Domain; using Win_in.Sfs.Wms.Store.Domain.Shared; +using Win_in.Sfs.Wms.Store.SplitPackings; namespace Win_in.Sfs.Wms.Store.Application; @@ -31,16 +32,19 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase private readonly ITransferNoteManager _transferNoteManager; private readonly IBalanceAppService _balanceAppService; private readonly ILocationAppService _locationAppService; + private readonly ISplitPackingRecManager _splitPackingRecManager; public TransferNoteAppService( ITransferNoteRepository repository, ITransferNoteManager transferNoteManager, IBalanceAppService balanceAppService, - ILocationAppService locationAppService) : base(repository) + ILocationAppService locationAppService, + ISplitPackingRecManager splitPackingRecManager) : base(repository) { _transferNoteManager = transferNoteManager; _balanceAppService = balanceAppService; _locationAppService = locationAppService; + _splitPackingRecManager = splitPackingRecManager; } #region 东阳使用 @@ -121,6 +125,48 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase [HttpPost("split-packing")] public async Task SplitPackingAsync(TransferNoteEditInput transferNoteEditInput) { + foreach (var inputDetail in transferNoteEditInput.Details) + { + //插入拆箱记录表 + List recLst = new List(); + SplitPackingRec fromRec = new SplitPackingRec(); + fromRec.OprType = Domain.Shared.SplitPackings.OprTypeEnum.SplitBox; + //fromRec.GroupCode = ; + //fromRec.OprLevel = ; + fromRec.NodeType = Domain.Shared.SplitPackings.NodeTypeEnum.FromBox; + //fromRec.ParentId = ; + fromRec.PackingCode = inputDetail.FromPackingCode; + //fromRec.RootPackingCode = ; + fromRec.ItemCode = inputDetail.ItemCode; + fromRec.ItemName = inputDetail.ItemName; + fromRec.ItemDesc1 = inputDetail.ItemDesc1; + fromRec.ItemDesc2 = inputDetail.ItemDesc2; + fromRec.Lot = inputDetail.FromLot; + fromRec.StdPackQty = inputDetail.StdPackQty; + fromRec.Uom = inputDetail.Uom; + fromRec.Qty = inputDetail.Qty; + recLst.Add(fromRec); + + SplitPackingRec toRec = new SplitPackingRec(); + toRec.OprType = Domain.Shared.SplitPackings.OprTypeEnum.SplitBox; + //toRec.GroupCode = ; + //toRec.OprLevel = ; + toRec.NodeType = Domain.Shared.SplitPackings.NodeTypeEnum.ToBox; + //toRec.ParentId = ; + toRec.PackingCode = inputDetail.ToPackingCode; + //toRec.RootPackingCode = ; + toRec.ItemCode = inputDetail.ItemCode; + toRec.ItemName = inputDetail.ItemName; + toRec.ItemDesc1 = inputDetail.ItemDesc1; + toRec.ItemDesc2 = inputDetail.ItemDesc2; + toRec.Lot = inputDetail.ToLot; + toRec.StdPackQty = inputDetail.StdPackQty; + toRec.Uom = inputDetail.Uom; + toRec.Qty = inputDetail.Qty; + recLst.Add(toRec); + await _splitPackingRecManager.DoSplitPacking(recLst).ConfigureAwait(false); + } + transferNoteEditInput.Type = EnumTransSubType.Transfer_SplitPacking.ToString(); return await CreateAsync(transferNoteEditInput).ConfigureAwait(false); } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/SplitPackings/NodeTypeEnum.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/SplitPackings/NodeTypeEnum.cs new file mode 100644 index 000000000..487dccc08 --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/SplitPackings/NodeTypeEnum.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Win_in.Sfs.Wms.Store.Domain.Shared.SplitPackings; +public enum NodeTypeEnum +{ + ToBox = 1, + + FromBox = 2 +} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/SplitPackings/OprTypeEnum.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/SplitPackings/OprTypeEnum.cs new file mode 100644 index 000000000..39871764d --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain.Shared/SplitPackings/OprTypeEnum.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Win_in.Sfs.Wms.Store.Domain.Shared.SplitPackings; +public enum OprTypeEnum +{ + /// + /// 拆箱 + /// + SplitBox = 1, + + /// + /// 合箱 + /// + MergeBox = 2 +} 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 27404e1b6..2e780ff7b 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 @@ -1,4 +1,4 @@ - + diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/ISplitPackingRecManager.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/ISplitPackingRecManager.cs new file mode 100644 index 000000000..0e2b1db47 --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/ISplitPackingRecManager.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Volo.Abp.Domain.Services; +using Win_in.Sfs.Wms.Store.Domain; + +namespace Win_in.Sfs.Wms.Store.SplitPackings; +public interface ISplitPackingRecManager : IDomainService +{ + Task DoSplitPacking(List input); +} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/ISplitPackingRecRepository.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/ISplitPackingRecRepository.cs new file mode 100644 index 000000000..692edb977 --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/ISplitPackingRecRepository.cs @@ -0,0 +1,9 @@ +using Win_in.Sfs.Shared.Domain; + +namespace Win_in.Sfs.Wms.Store.Domain; + +public interface ISplitPackingRecRepository : ISfsStoreRepositoryBase +{ +} + + 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 new file mode 100644 index 000000000..1faed30aa --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRec.cs @@ -0,0 +1,76 @@ +using System; +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; +using Win_in.Sfs.Shared.Domain; +using Win_in.Sfs.Shared.Domain.Shared; +using Win_in.Sfs.Wms.Store.Domain.Shared.SplitPackings; + +namespace Win_in.Sfs.Wms.Store.Domain; + +/// +/// 采购标签 +/// +public class SplitPackingRec : SfsAggregateRootBase + , IHasItem + , IHasQty + , IHasStdPack +{ + /// + /// 操作类型 + /// + public OprTypeEnum OprType { get; set; } + + /// + /// + /// + public string GroupCode { get; set; } + + /// + /// + /// + public long OprLevel { get; set; } + + /// + /// + /// + public NodeTypeEnum NodeType { get; set; } + + public Guid? ParentId { get; set; } + + public string PackingCode { get; set; } + + public string RootPackingCode { get; set; } + + //public string FullBarcodeString { get; set; } + + public string ItemCode { get; set; } + + public string ItemName { get; set; } + + public string ItemDesc1 { get; set; } + + public string ItemDesc2 { get; set; } + + public string Lot { get; set; } + + /// + /// 标包数量 + /// + [Display(Name = "标包数量")] + [Column(TypeName = "decimal(18,6)")] + public decimal StdPackQty { get; set; } + + /// + /// 计量单位 + /// + [Display(Name = "计量单位")] + [MaxLength(SfsPropertyConst.CodeLength)] + public string Uom { get; set; } + + /// + /// 数量 + /// + [Display(Name = "数量")] + [Column(TypeName = "decimal(18,6)")] + public decimal Qty { 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 new file mode 100644 index 000000000..f2589e7a9 --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/SplitPackings/SplitPackingRecManager.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Microsoft.EntityFrameworkCore; +using Volo.Abp.Domain.Services; +using Win_in.Sfs.Wms.Store.Domain; + +namespace Win_in.Sfs.Wms.Store.SplitPackings; +public class SplitPackingRecManager : DomainService, ISplitPackingRecManager +{ + private readonly ISplitPackingRecRepository _repository; + + public SplitPackingRecManager(ISplitPackingRecRepository repository) + { + _repository = repository; + } + + public async Task DoSplitPacking(List input) + { + string groupCode = Guid.NewGuid().ToString(); + long maxOprLevel; + Guid? parentId; + string rootPackingCode; + SplitPackingRec fromRec = input.First(itm => itm.NodeType == Domain.Shared.SplitPackings.NodeTypeEnum.FromBox); + var query = await _repository.GetQueryableAsync().ConfigureAwait(false); + var hasData = await query.AnyAsync(itm => itm.PackingCode == fromRec.PackingCode).ConfigureAwait(false); + if (hasData) + { + maxOprLevel = await query.Where(itm => itm.PackingCode == fromRec.PackingCode).MaxAsync(itm => itm.OprLevel).ConfigureAwait(false); + SplitPackingRec lastRec = await query.FirstAsync(itm => itm.PackingCode == fromRec.PackingCode && itm.OprLevel == maxOprLevel).ConfigureAwait(false); + parentId = lastRec.Id; + rootPackingCode = lastRec.RootPackingCode; + } + else + { + maxOprLevel = 1; + parentId = null; + rootPackingCode = fromRec.PackingCode; + } + + foreach (SplitPackingRec item in input) + { + item.GroupCode = groupCode; + item.OprLevel = maxOprLevel + 1; + item.ParentId = parentId; + item.RootPackingCode = rootPackingCode; + } + await _repository.InsertManyAsync(input).ConfigureAwait(false); + return true; + } +} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Win_in.Sfs.Wms.Store.Domain.csproj b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Win_in.Sfs.Wms.Store.Domain.csproj index 90a600d5c..e2ffaaf0a 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Win_in.Sfs.Wms.Store.Domain.csproj +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Win_in.Sfs.Wms.Store.Domain.csproj @@ -1,4 +1,4 @@ - + diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/IStoreDbContext.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/IStoreDbContext.cs index c99a156c0..f959ddec9 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/IStoreDbContext.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/IStoreDbContext.cs @@ -106,4 +106,6 @@ public interface IStoreDbContext : IEfCoreDbContext public DbSet ExchangeDatas { get; } + public DbSet SplitPackingRecs { get; } + } 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.Designer.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230412072454_Store_AddColumn.Designer.cs deleted file mode 100644 index 72ce9d5e6..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/20230412072454_Store_AddColumn.Designer.cs +++ /dev/null @@ -1,20983 +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("20230412072454_Store_AddColumn")] - partial class Store_AddColumn - { - 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("CountPrint") - .HasColumnType("int"); - - 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("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("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("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("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") - .IsRequired() - .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/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/StoreDbContextModelSnapshot.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/StoreDbContextModelSnapshot.cs deleted file mode 100644 index 6a513c945..000000000 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Migrations/StoreDbContextModelSnapshot.cs +++ /dev/null @@ -1,20981 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; -using Win_in.Sfs.Wms.Store.EntityFrameworkCore; - -#nullable disable - -namespace Win_in.Sfs.Wms.Store.Migrations -{ - [DbContext(typeof(StoreDbContext))] - partial class StoreDbContextModelSnapshot : ModelSnapshot - { - protected override void BuildModel(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("CountPrint") - .HasColumnType("int"); - - 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("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("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("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("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") - .IsRequired() - .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/SplitPackings/SplitPackingRecDbContextModelCreatingExtensions.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/SplitPackings/SplitPackingRecDbContextModelCreatingExtensions.cs new file mode 100644 index 000000000..a76333703 --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/SplitPackings/SplitPackingRecDbContextModelCreatingExtensions.cs @@ -0,0 +1,45 @@ +using Microsoft.EntityFrameworkCore; +using Volo.Abp.EntityFrameworkCore.Modeling; +using Win_in.Sfs.Label.Domain; +using Win_in.Sfs.Shared.Domain.Shared; +using Win_in.Sfs.Shared.EntityFrameworkCore; +using Win_in.Sfs.Wms.Store.Domain; + +namespace Win_in.Sfs.Wms.Store.EntityFrameworkCore; + +public static class SplitPackingRecDbContextModelCreatingExtensions +{ + public static void ConfigureSplitPackingRec(this ModelBuilder builder, StoreModelBuilderConfigurationOptions options) + { + builder.Entity(b => + { + //Configure table & schema name + b.ToTable(options.TablePrefix + nameof(SplitPackingRec), options.Schema); + //Configure ABP properties + b.ConfigureByConvention(); + //Configure Sfs base properties + b.ConfigureSfsBase(); + + //Properties + b.Property(q => q.OprType).IsRequired(); + b.Property(q => q.GroupCode).IsRequired().HasMaxLength(36); + b.Property(q => q.OprLevel).IsRequired(); + b.Property(q => q.NodeType).IsRequired(); + //b.Property(q => q.ParentId) + b.Property(q => q.PackingCode).IsRequired().HasMaxLength(SfsPropertyConst.CodeLength); + b.Property(q => q.RootPackingCode).IsRequired().HasMaxLength(SfsPropertyConst.CodeLength); + b.Property(q => q.ItemCode).IsRequired().HasMaxLength(SfsPropertyConst.CodeLength); + b.Property(q => q.ItemName).IsRequired().HasMaxLength(SfsPropertyConst.NameLength); + b.Property(q => q.ItemDesc1).IsRequired().HasMaxLength(SfsPropertyConst.DescLength); + b.Property(q => q.ItemDesc2).IsRequired().HasMaxLength(SfsPropertyConst.DescLength); + b.Property(q => q.Lot).IsRequired().HasMaxLength(SfsPropertyConst.CodeLength); + b.Property(q => q.StdPackQty).HasPrecision(18, 4); + b.Property(q => q.Uom).HasMaxLength(50); + b.Property(q => q.Qty).IsRequired().HasPrecision(18,4); + //Indexes + b.HasIndex(q => new { PackingCode = q.PackingCode }); + b.HasIndex(q => new { PackingCode = q.PackingCode, OprLevel = q.OprLevel }); + + }); + } +} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/SplitPackings/SplitPackingRecEfCoreRepository.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/SplitPackings/SplitPackingRecEfCoreRepository.cs new file mode 100644 index 000000000..672a8bdc2 --- /dev/null +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/SplitPackings/SplitPackingRecEfCoreRepository.cs @@ -0,0 +1,12 @@ +using Volo.Abp.EntityFrameworkCore; +using Win_in.Sfs.Label.Domain; +using Win_in.Sfs.Wms.Store.Domain; + +namespace Win_in.Sfs.Wms.Store.EntityFrameworkCore; + +public class SplitPackingRecEfCoreRepository : SfsStoreEfCoreRepositoryBase, ISplitPackingRecRepository +{ + public SplitPackingRecEfCoreRepository(IDbContextProvider dbContextProvider) : base(dbContextProvider) + { + } +} diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreDbContext.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreDbContext.cs index 9a5dbfa35..b4973c9d4 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreDbContext.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreDbContext.cs @@ -105,6 +105,8 @@ public class StoreDbContext : AbpDbContext, IStoreDbContext public DbSet ExchangeDatas { get; set; } + public DbSet SplitPackingRecs { get; set; } + public StoreDbContext(DbContextOptions options) : base(options) { diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreDbContextModelCreatingExtensions.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreDbContextModelCreatingExtensions.cs index 38813f279..06cd36742 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreDbContextModelCreatingExtensions.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreDbContextModelCreatingExtensions.cs @@ -123,6 +123,9 @@ public static class StoreDbContextModelCreatingExtensions //设置decimal的默认小数位数 builder.ConfigurePrecisionOfDecimal(); + builder.ConfigureSplitPackingRec(options); + + } } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreEntityFrameworkCoreModule.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreEntityFrameworkCoreModule.cs index d51a8a347..707970ed4 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreEntityFrameworkCoreModule.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreEntityFrameworkCoreModule.cs @@ -124,6 +124,8 @@ public class StoreEntityFrameworkCoreModule : AbpModule #endregion context.Services.AddTransient(); + context.Services.AddTransient(); + } private void ConfigureEntity() diff --git a/build/src/docker/publish/conf/settings/appsettings.Development.json b/build/src/docker/publish/conf/settings/appsettings.Development.json index 55f832e94..4c7414e68 100644 --- a/build/src/docker/publish/conf/settings/appsettings.Development.json +++ b/build/src/docker/publish/conf/settings/appsettings.Development.json @@ -91,7 +91,8 @@ "Job": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", "Label": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", "Message": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;", - "Store": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;" + //"Store": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Main;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;" + "Store": "Server=dev.ccwin-in.com,13319;Database=WMS_DongYang_Temp;uid=ccwin-in;pwd=Microsoft@2022;timeout=6000;" }, "IdentityClients": { "Default": {